-
Notifications
You must be signed in to change notification settings - Fork 0
/
ebay.ads-distractions.user.js
61 lines (55 loc) · 2.16 KB
/
ebay.ads-distractions.user.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// ==UserScript==
// @name eBay - Hide Ads and Distractions
// @description Suppresses sponsored/promoted items, financing offers, reviews and other unsolicited content at eBay.
// @author Kris Wilk
// @version 1.1
//
// @namespace https://github.com/kriswilk/userscripts
// @homepage https://github.com/kriswilk/userscripts
// @supportURL https://github.com/kriswilk/userscripts/issues
// @downloadURL https://kriswilk.github.io/userscripts/ebay.ads-distractions.user.js
//
// @match https://*.ebay.at/*
// @match https://*.ebay.be/*
// @match https://*.ebay.ca/*
// @match https://*.ebay.ch/*
// @match https://*.ebay.co.in/*
// @match https://*.ebay.co.uk/*
// @match https://*.ebay.com/*
// @match https://*.ebay.com.au/*
// @match https://*.ebay.com.hk/*
// @match https://*.ebay.com.my/*
// @match https://*.ebay.com.sg/*
// @match https://*.ebay.de/*
// @match https://*.ebay.es/*
// @match https://*.ebay.fr/*
// @match https://*.ebay.ie/*
// @match https://*.ebay.it/*
// @match https://*.ebay.nl/*
// @match https://*.ebay.ph/*
//
// @icon https://www.google.com/s2/favicons?sz=64&domain=ebay.com
//
// @grant GM_addStyle
// ==/UserScript==
/* eslint-disable no-multi-spaces */
(function() {
'use strict';
const selectors = [
// LISTINGS
".x-pda-placements", // promoted content
".x-rx-slot", // promoted content
".x-rx-slot-btf", // promoted content
".x-financing-info", // financing offer
".d-payments-minview", // financing offer
".x-shop-with-confidence", // money back guarantee
".x-evo-btf-river", // content below item description
// SEARCH
".srp-river-answer[class*='CAROUSEL']:not([class*='NAVIGATION'])", // picked for you
".srp-main-below-river", // related searches, recently viewed
// OTHER
".m-product-tour", // feature notices
".stream-slot", // watchlist - similar items
].join(",");
GM_addStyle(selectors + " {display: none;}");
})();