By PAStheLoD
—
Last update
Apr 11, 2009
—
Installed
18 times.
// ==UserScript==
// @name auto-zap
// @namespace auto-zap
// @include *
// ==/UserScript==
(function()
{
function R(w)
{
try
{
var d = w.document, j, i, t, T, N, b, r = 1, C; for (j = 0; t = ["object", "embed", "applet", "iframe"][j]; ++j)
{
T = d.getElementsByTagName(t); for (i = T.length - 1; (i + 1) && (N =
T[i]); --i)if (j != 3 || !R((C = N.contentWindow) ? C:
N.contentDocument.defaultView))
{
b = d.createElement("div"); b.style.width = N.width; b.style.height =
N.height; b.innerHTML = "<del>" + (j == 3 ? "third-party " + t: t)
+ "</del>"; N.parentNode.replaceChild(b, N);
}
}
}
catch (E)
{
r = 0
}
return r
}
R(self); var i, x; for (i = 0; x = frames[i]; ++i)R(x)
})();
(function()
{
var d = document; function K(N, w)
{
var nn = d.createElement(w), C = N.childNodes, i; for (i = C.length - 1; i
>= 0; --i)nn.insertBefore(C[i], nn.childNodes[0]);
N.parentNode.replaceChild(nn, N);
}
function Z(t, w)
{
var T = document.getElementsByTagName(t), j; for (j = T.length - 1; j >= 0;
--j)K(T[j], w);
}
Z("blink", "span"); Z("marquee", "div");
})();
(function()
{
var H = ["mouseover", "mouseout", "unload", "resize"], o = window.opera; if
(document.addEventListener /*MOZ*/ && !o)for (j in H)
document.addEventListener(H[j], function(e)
{
e.stopPropagation();
}
, true);
else if (window.captureEvents /*NS4*/ && !o)
{
document.captureEvents( - 1 /*ALL*/); for (j in H)window["on" + H[j]] =
null;
}
else
/*IE*/
{
function R(N)
{
var i, x; for (j in H)if (N["on" + H[j]] /*NOT TEXTNODE*/)N["on" + H[j]]
= null; for (i = 0; x = N.childNodes[i]; ++i)R(x);
}
R(document);
}
})();
(function()
{
var c, tID, iID; tID = setTimeout(function(){}
, 0); for (c = 1; c < 1000 && c <= tID; ++c)clearTimeout(tID - c); iID =
setInterval(function(){}
, 1000); for (c = 0; c < 1000 && c <= iID; ++c)clearInterval(iID - c);
})();
(function()
{
var newSS, styles = '* { background: white !important; color:black !important; } :link, :link * { color: #E00044 !important; } :visited, :visited * { color: #551A8B !important; }';
if (document.createStyleSheet){document.createStyleSheet("javascript:'" +
styles + "'");
}
else
{
newSS = document.createElement('link'); newSS.rel = 'stylesheet'; newSS.href
= 'data:text/css,' + escape(styles); document.getElementsByTagName("head")
[0].appendChild(newSS);
}
})();
/*
function _szinez(o){
for (i in o){
if(typeof(i) == "HTML Element" && i.tagName == "a"){
}
}
}
*/