Hide ebay range listings

Remove ebay listings that have range values

// ==UserScript==
// @name         Hide ebay range listings
// @author       Rolandas Valantinas
// @description  Remove ebay listings that have range values
// @include      *ebay.co.uk/sch*
// @include      *ebay.com/sch*
// @namespace    https://gf.qytechs.cn/users/157178
// @supportURL   https://github.com/rolandas-valantinas/gists/issues
// @version      1.2
// ==/UserScript==

(function () {
    var interval = setInterval(hideListings, 2000);

    function hideListings() {
        var price = document.getElementsByClassName("DEFAULT");

        for (var i = 0; i < price.length; i++) {
            price[i].parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.remove();
        }

        if (price.length === 0) {
            clearInterval(interval);
        }
    }
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址