hello i have this little image script that work on greasamonkey, the script is good and work like a charm it help me to block images i dont want to see
but i wished it has interval timer becasue i run it over site with dynamic content ..the targeted pics keep changing without even press f5 /refreshing
here the script ... where i should add setInterval??
// ==/UserScript==
// @grant none
var images = document.getElementsByTagName ("img");
var x=0;
while(x<images.length)
{
if(images[x].alt == "category 1" || images[x].alt == "category 2")
{
images[x].src = "http://www.domain/IMAGES-REPLACER.gif";
}
x=x+1;
}
thanks hope u help i'm super noob