Archive for January 26th, 2008

Greasemonkey and Stylish to control webpages

January 26th, 2008

I finally got around to installing Greasemonkey and Stylish for my Firefox. For those that don’t know, Greasemonkey is an extension that allows you to run custom Javascript scripts for pages that render in your browser. Stylish is basically the same thing, but for CSS not Javascript.

I haven’t gotten around to doing anything with Greasemonkey yet, but I’m pretty sure a week from now I’ll have a bunch of scripts running. :P The very first thing I did with Stylish is to hide all ads on the website. I think the social ads was a horrible idea for facebook. I’m so tired of seeing an ad in my newsfeed that tells me so and so is a fan of x and y. This little script below will eradicate all known ads on facebook!

@namespace url(http://www.w3.org/1999/xhtml);

@-moz-document domain(”facebook.com”) {

#ad_0, #ad_1, #ad_2, #ad_3, #ad_4,
#ad_5, #ad_6, #ad_7, #ad_8, #ad_9,
#ssponsor, .advert, .ad_body,
.ad_capsule, .ad_media,
.comments_ad_image, .sponsors,
.sponsor_absolute, .social_ad,
#new_stuff_content, .nextstep { display:none !important; }

}

Quick and dirty does it! Goodbye facebook ads!