Ebay - Remove listings with multiple prices

Removes those annoying price range listings from search results

< 脚本Ebay - Remove listings with multiple prices的反馈

评价:好评 - 脚本运行良好

§
发表于:2018-09-08

add ebay.de support

// ==UserScript== // @name Ebay - Remove listings with multiple prices // @namespace ebay_remove_price_range_listings // @description Removes those annoying price range listings from search results // @include https://www.ebay.com/sch/i.html* // @include https://www.ebay.de/sch/i.html* // @author Jous // @grant none // @license Unlicense; http://unlicense.org/ // @version 1.0.1 // ==/UserScript== // hiro added support for ebay.de

var tags = document.querySelectorAll(".DEFAULT"); var count = 0; Array.prototype.forEach.call(tags, function(elem) { elem.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.removeChild(elem.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode); count++; });

tags = document.querySelectorAll(".prRange"); count = 0; Array.prototype.forEach.call(tags, function(elem) { elem.parentNode.parentNode.parentNode.parentNode.parentNode.removeChild(elem.parentNode.parentNode.parentNode.parentNode); count++; });

document.body.innerHTML += '

'; infoMsg = document.getElementById("removeThatCrap"); infoMsg.innerText = count + " price range listings \nwere removed. (spam choices)"; infoMsg.style.position = "absolute"; infoMsg.style.top = "40px"; infoMsg.style.left = "10px"; infoMsg.style.padding = "10px"; infoMsg.style.backgroundColor = "#ccc";

§
发表于:2018-09-20

thanks for incorporating this, and then making it a lot better :)

发表回复

登录(不可用)以发表回复。

QingJ © 2025

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