I tried to write a greasemonkey script that would remove search results on Ebay that say 'Shipping not specified'. The code below removes only some of them and sometimes even those that have shipping cost specified or maybe it works on 1 item only. I don't even know anymore. What is wrong?
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match http://*/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
var li = document.getElementsByClassName('lvshipping');
for(var i=0;i < li.length;i++)
{
if(li[i].innerHTML.indexOf("Shipping not specified") != -1)
{
console.log("Found!!!!!!!!!!!!!!!");
li[i].parentNode.parentNode.parentNode.removeChild(li[i].parentNode.parentNode);
}
}
})();
Keep it simple.