// ==UserScript== // @name Ebay - Sponsored products remover // @namespace https://greasyfork.org/en/users/2755-robotoilinc // @author RobotOilInc // @version 0.1.0 // @license MIT // @description Removes the sponsored/suggested/other crap from Ebay. Made for personal use, sharing because why not. // @match https://www.ebay.com/* // @match https://*.ebay.com/* // @match https://www.ebay.nl/* // @match https://*.ebay.nl/* // @match https://www.ebay.de/* // @match https://*.ebay.de/* // @run-at document-end // @downloadURL none // ==/UserScript== new MutationObserver(function(mutationList, observer) { // Remove "Sponored" boxes document.querySelectorAll('.x-rx-slot').forEach(function(element) { element.remove(); }); document.querySelectorAll('.vod-ads-placement').forEach(function(element) { element.remove(); }); document.querySelectorAll('.srp-river-answer').forEach(function(element) { element.remove(); }); // Remove "Sponored" results document.querySelectorAll('.su-sponsored-label__sep').forEach(function(element) { if (element.textContent == "") return; const parent = element.closest('li'); if(parent) parent.remove(); }); // Remove "Sponsored" bar document.querySelectorAll('[data-testid="x-pda-placements"] > div').forEach(function(element) { element.remove(); }); // Remove "More to explore" document.querySelectorAll('[data-testid="ux-navigator-seo-interlink"]').forEach(function(element) { element.remove(); }); document.querySelectorAll('.b-seo-product-list').forEach(function(element) { element.remove(); }); // Remove "You may also like" document.querySelectorAll('.b-seo-ymal').forEach(function(element) { element.remove(); }); document.querySelectorAll('.seo-product-carousel').forEach(function(element) { element.remove(); }); document.querySelectorAll('.x-rx-slot-btf').forEach(function(element) { element.remove(); }); // Remove "Related Searches" document.querySelectorAll('[data-testid="x-seo-related-search"]').forEach(function(element) { element.remove(); }); // Remove SEO content document.querySelectorAll('.seo-content').forEach(function(element) { element.remove(); }); document.querySelectorAll('.seo-gallery-view').forEach(function(element) { element.remove(); }); document.querySelectorAll('[class*=SEO_TEXT_BLURB]').forEach(function(element) { element.remove(); }); document.querySelectorAll('[data-testid="x-seo-footer"]').forEach(function(element) { element.remove(); }); document.querySelectorAll('.seo-footer-container').forEach(function(element) { element.remove(); }); }).observe(document.body, { childList: true, subtree: true });