Myspace Annoyance Remover Hack

July 27th, 2006

There’s a greasemonkey script for firefox that removes most of that annoying shit from myspace. On profiles you can turn off the user input CSS, images, flash, etc, etc… It works pretty well and I give mad props to the person that wrote it.

I got tired of having to click the link to block the user input CSS and stuff, so I “modified” the script so it automatically happens as long as greasemonkey is enabled. It makes the myspace experience so much better less annoying.

You can either save the .js file and edit it, or you can edit it through the script manager in Firefox.

In Firefox go to TOOLS>MANAGE USER SCRIPTS

Highlight the Myspace Annoyance Remover and click “edit.”

It might ask you to browse to your text editor. You might check c:\program files\windows nt\accessories for wordpad, or c:\windows for notepad. Wordpad keeps the formatting so that’s the one I used. Odds are if you’re attempting this, you probably know how to find an executable on your hard drive anyway.

Moving right along, the code we’re looking for is:

function filterProfile () {
var prefs = GM_getValue(loc, "none");
if (prefs.indexOf("css") > -1) removeCSS();
if (prefs.indexOf("images") > -1) removeImages();
if (prefs.indexOf("flash") > -1) removeFlash();
if (prefs.indexOf("av") > -1) removeAV();
if (prefs.indexOf("falling") > -1) removeFalling();
if (prefs.indexOf("marquee") > -1) removeMarquee();
}

We want to remove the IF statements: “if (prefs.indexOf(”marquee”) > -1)” So our code now looks like this:

function filterProfile () {
var prefs = GM_getValue(loc, "none");
removeCSS();
removeImages();
removeFlash();
removeAV();
removeFalling();
removeMarquee();
}

The above code will automatically block each of those elements without having to click the link and check the boxes. There’s really no need to block ALL of them, so you can pick and choose to fit your needs. Mine looks like this, because I really just hate the backgrounds (I got rid of the others just for the hell of it). Just leave that IF statement in front of whatever function you don’t want to autoblock.

function filterProfile () {
var prefs = GM_getValue(loc, "none");
removeCSS();
if (prefs.indexOf("images") > -1) removeImages();
removeFlash();
removeAV();
removeFalling();
removeMarquee();
}

Now, is that clear as mud? Good. If you fuck something up you can always remove the script and reinstall it.

Geek | Comments Jump to the top of this page

Leave a Reply

  •  
  •  
  •  

You can keep track of new comments to this post with the comments feed.

random title

Recently on Flickr

    IMG_1547 IMG_1547 IMG_1553-1 IMG_0566 day31   

Meta