Myspace custom style remover

By eekmale Last update Feb 23, 2006 — Installed 20,252 times.

Upgrade

in
Subscribe to Upgrade 1 post, 1 voice

JoeSimmons Scriptwright

I edited the script to also remove <link> tags in the <head> tag that alter the pages theme...

(function(){
	var t2 = document.getElementById('Table2');
	if(!t2 || t2.textContent.indexOf('Last Login')==-1) return;
    //remove user styles
    var array = document.evaluate("//style | //link[contains(@href,'ThemeCss.ashx') or contains(@href,'UserStyle.ashx')]",document,null,6,null);
	for(var i=array.snapshotLength-1; (item=array.snapshotItem(i)); i--) {
	item.parentNode.removeChild(item);
	}
})();

It doesn't run if it's not on a profile either.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel