Greasy Fork

eBay.com AD & Annoyances Remover

Removes eBay.com Ads, Reviews, & Other General Annoyances

目前为 2024-02-03 提交的版本。查看 最新版本

/* DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
              Version 1.0 2-3-2024
            Copyright (C) 2024 DebSec

   Everyone Is Permitted To Copy And Distribute Verbatim Or Modified
   Copies Of This License Document And Changing It Is Allowed As Long
   As The Name Is Changed.

            DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
            DO WHAT THE FUCK YOU WANT TO.
                Credit uBlock-user
*/
// ==UserScript==
// @run-at       document-end
// @name         eBay.com AD & Annoyances Remover
// @description  Removes eBay.com Ads, Reviews, & Other General Annoyances
// @namespace    https://greasyfork.org/en/users/1031446-debsec
// @version      1.6
// @author       DebSec
// @include      /^https://[a-z.]+\.ebay(desc)?(\.com?)?\.[a-z]{2,3}/.*$/
// @icon         https://www.google.com/s2/favicons?domain=ebay.com
// @grant        none
// @license      DWTFYWTPL
// ==/UserScript==
'use strict';
(function(w, d, list, n, i, e) {
        e = new MutationObserver(function(list, n, i) {
        list = d.querySelectorAll("[class^='srp-sov']/* Remove Best Savings */, [id^='gh-doodleS']/* Remove Sponsored Ads */, [id^='UserReviews']/* Remove Reviews */, [id^='p-carousel-browse_related']/* Remove Sponsored Related Ads */, [id^='p-carousel-save_on']/* Remove Sponsored Save On Ads */, [id^='p-carousel-best_selling']/* Remove Sponsored Best Selling Ads */, [id^='placement']/* Remove Sponsored Ads */, [id^='LISTING_FRAME_MODULE']/* Remove Seller Info */, [id^='rwid']/* Remove Reviews */, [class^='vim d-sme-btf']/* Remove Sponsored Ads */, [class^='x-financing-info']/* Remove Sponsored Financing Ads */, [class^='gf-legal']/* Remove Litigious Info */, [title^='ADVERTISEMENT']/* Remove Sponsored Ads */, [id^='gf-t-box']/* Remove Litigious Info */, [id^='FootPanel']/* Remove Litigious Info */, [class^='srp-main-below-river']/* Inspired */");
        n = list.length;
        for (i = 0; i < n; i++)
            list[i].remove();
    });
    e.observe(d, {childList: true, subtree:true});
})(window, document);