// ==UserScript== // @name Etsy - Sponsored Products remover // @namespace https://greasyfork.org/en/users/2755-robotoilinc // @author RobotOilInc // @version 0.4.0 // @license MIT // @description Removes the terrible sponsored products/banners/suggested searches/etc from Etsy. // @match http*://www.etsy.com/search?* // @match http*://www.etsy.com/search?* // @icon https://i.imgur.com/YYVvnud.png // @run-at document-body // @downloadURL none // ==/UserScript== new MutationObserver(function(mutationList, observer) { // Remove most loved document.querySelectorAll('[data-top-rated-narrowing-intent-search]').forEach(function(element) { element.style.display = 'none'; }); // Remove "Ad by Etsy seller" results document.querySelectorAll('.v2-listing-card__info span').forEach(function(element) { if (!element.innerText.includes(' by Etsy seller')) { return; } const style = window.getComputedStyle(element); if (style.width == "0px" || style.height == "0px" ){ return; } const parent = element.closest('li.wt-list-unstyled'); if(parent) parent.remove(); }); }).observe(document.body, { childList: true, subtree: true });