NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Ebay - Hide Multiple Listings // @namespace https://lains.space // @version 1.0 // @description This script hides those spam multiple choice listings from ebay. Now you can sort by lowest price!! // @author Filipe LaĆns // @license MIT // @require http://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js // @include http://ebay.* // @include https://ebay.* // @include http://*.ebay.* // @include https://*.ebay.* // ==/UserScript== var loc=document.location.href.match(/^https?:\/\/www\.ebay\.(com|ca|co\.uk|com\.au|in|de|at|fr| it|nl|es|ch|ie|ph|pl|be|com\.hk|com\.my|com\.sg)\/(dsc|sch)\/i\.html/i); if(loc !== null) { if(loc[0].match(/dsc/i) !== null){ var trg = document.body.querySelectorAll('li[id^="item"].sresult'); if(trg.length !== 0) { var els = 'li[id^="item"].sresult span>span[class*="prRange"]'; var gps = '[class$="vtitle"] a.vip'; } } else { var trg = document.body.querySelectorAll('li[id^="srp-river-results-listing"].s-item'); if(trg.length !== 0) { var els = 'li[id^="srp-river-results-listing"] span.s-item__price>span.DEFAULT'; var gps = 'div.s-item__info>a.s-item__link'; } } var j=1; for(k=0;k<trg.length;k++) { if(trg[k].querySelector(els) !== null){ var url = trg[k].querySelector(gps).href; trg[k].innerHTML = '<a href="' + url + '"style="float:right; color:green;padding:5px;">[ Removed Ranged Price result ' + (j++) + ' ]</a>'; } } }