Anyone use the addon?
I made this one which will display web bugs. Can get annoying though, but none the less interesting.
Check out CNN. LOL!
If you use Noscript, you have the option of permanently block web bugs.
Anyone know how I can make the sqare an image of a bug instead? Tried encoding an image and using a script, but didn't show up.
This is my fav for Padora radio.
I made this one which will display web bugs. Can get annoying though, but none the less interesting.
Check out CNN. LOL!
If you use Noscript, you have the option of permanently block web bugs.
Anyone know how I can make the sqare an image of a bug instead? Tried encoding an image and using a script, but didn't show up.
Code:
// ==UserScript==
// @name Web Bug display
// @namespace www.google.com
// @description Finds and displays web bugs
// @include *
// ==/UserScript==
( 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 = "35";
imgList[i].height = "35";
imgList[i].alt = "W38 8U6";
imgList[i].border = "8";
imgList[i].style.borderColor = '#33FF99';
imgList[i].style.backgroundColor = '#ff0000';
}
}
return;
}, false);
})();
This is my fav for Padora radio.
Code:
// Copyright (c) Steve McLenithan 2006
// Released under the GPL license
// http://www.gnu.org/copyleft/gpl.html
//
// --> For the latest updates check http://yarr-n-stuff.net/greasemonkey/pandora.user.js
//
// ==UserScript==
// @name Pandora Tuner Only
// @namespace http://pandora.com
// @description Hide everything but the pandora tuner.
// @include http://www.pandora.com/
// ==/UserScript==
var tuner = document.getElementById('tuner').innerHTML;
var newBody =
'<html>' +
'<head>' +
'<title>Pandora</title>' +
'</head>' +
'<body><center>' + tuner +
'</body></center>' +
'</html>';
window.addEventListener(
'load',
function() { document.body.innerHTML = newBody; },
true);
DisableStyles();
function DisableStyles()
{
var stylesheets, all, element;
// this disables all externally linked stylesheets
stylesheets = document.styleSheets;
for (var i = 0; i < stylesheets.length; i++)
{
stylesheets[i].disabled = true;
}
all = document.getElementsByTagName('*');
for (var i = 0; i < all.length; i++)
{
element = all[i];
if (element.nodeName == 'STYLE')
{
// this removes <style> elements defined anywhere on the page
element.parentNode.removeChild(element);
}
}
}