(function()
{
window.addEventListener("load", function(e)
{
var imgList = document.getElementsByTagName("img");
for (i=0; i < imgList.length; i++)
{
if (imgList[i].width == 1 && imgList[i].height == 1 && imgList[i].src != "")
{
imgList[i].width = "101";
imgList[i].height = "101";
imgList[i].alt = "WeB BuG";
imgList[i].border = "7";
imgList[i].style.borderColor = '#ff0000';
imgList[i].style.backgroundColor = '#00ff00';
}
}
return;
}, false);
})();
whoa! awesome :D all good until they make them 1x2 px ;P tnx 4 this script nigga :)
if (imgList[i].width < 3 && imgList[i].height < 3 && imgList[i].src != "")
Uhm, except for the fact that many websites still use 1x1 images for preloading purposes. Loading a 45k image at 1x1 pixel places it into cache, so it can be loaded quickly when needed, at which time it can be displayed at its proper size. With the increase of broadband, this isn't so much of a problem anymore. But you still might be interfering with site loading.
( function()
{
window.addEventListener("load", function(e)
{
var imgList = document.getElementsByTagName("img");
for (i=0; i < imgList.length; i++)
{
if (imgList[i].src != "" && imgList[i].naturalWidth == 1 && imgList[i].naturalHeight == 1)
{
imgList[i].width = "101";
imgList[i].height = "101";
imgList[i].alt = "WeB BuG";
imgList[i].border = "11";
imgList[i].style.borderColor = '#ff0000';
imgList[i].style.backgroundColor = '#00ff00';
}
}
return;
}, false);
})();
( function()
{
window.addEventListener("load", function(e)
{
var imgList = document.getElementsByTagName("img");
for (i=0; i < imgList.length; i++)
{
if (imgList[i].naturalWidth == 1 && imgList[i].naturalHeight == 1)
{
imgList[i].style.display = "none";
}
}
return;
}, false);
})();