eBay Stop redirecting to similar item ++

Remove sponsors and Stop redirecting to similar item

// ==UserScript==
// @name         eBay Stop redirecting to similar item ++
// @namespace    eBay
// @version      2.0.2
// @description  Remove sponsors and Stop redirecting to similar item
// @author       denis hebert
// @license      GNU GPL-3.0-or-later
// @match        *://*/mye/*
// @match        *://*/itm/*
// @match        *://*/sch/i.html*
// @match        *://*/d/*
// @run-at       document-end
// @icon         https://www.google.com/s2/favicons?sz=64&domain=ebay.ca
// @grant        none
// ==/UserScript==

'use strict';

(function(d, c, e) {
    // Remove sponsors and add missing tags to /itm/ before rendering
    e = new MutationObserver(function(list, n, i, e) {
        list = d.querySelectorAll("[id^='placement']"); // Sponsor elements
        n = list.length;
        for (i = 0; i < n; i++)
            list[i].remove();
        // Complete itm links with "nordt=true#CenterPanelInternal" precision if lacking of it
        list = d.getElementsByTagName("a");
        n = list.length;
        for (i = 0; i < n; i++) {
            e = list[i];
            if ( "href" in e  &&  e.href.includes("/itm/")  &&  ! e.href.includes(c) )
                e.href += (e.href.includes("?") ? "&" : "?") + c;
        }
    });
    e.observe(d, {childList: true, subtree:true});
})(document, "nordt=true#CenterPanelInternal");

QingJ © 2025

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