ad blocking on facebook, failblog, and fark with firefox

Published on 21 Jun 2011 at 10:54 pm. 1 Comment.
Filed under Web stuff.

I am a bit of a Web geek who is really tired of seeing ads on the sites he visits, but I  do not want to run ad-block because I like a bit more control over what I block. I have taken to editing the userContent.css file in the chrome directory of my Firefox profile as described by Gozer.

Specifically, I include the following text in my userContent.css file.

@-moz-document domain(, domain( {
	#rightCol, #rightColSpacer, #topAd728x90 { display: none !important; }
	#newsContainer { background-color: #CCCCCC !important; }

@-moz-document domain( {
   #leaderboard, #panemain { display: none !important; }
   #pane2 { width: 800px !important; }

@-moz-document domain( {
   #rightCol { display: none !important; }
   .hasLeftCol .hasRightCol #contentArea  { padding-right: 20px !important; width: 759px !important; }
   .hasLeftCol .hasRightCol  .uiUfi { width: 664px !important; }

The first block above specifically targets and and disables the right column and the ad at the top, and extends out the left column. The second block targets all of the various sites and similarly removes the right column and the ad at the top and extends the left column (making the comments MUCH easier to read). The final block again removes the right column and extends out the middle column so that it takes the place of the right. Admittedly, this looks a little odd at first, but you get used to it.

Just place the lines above into your own userConent.css file, restart Firefox and enjoy the extra room. 🙂

1 Comment to ‘ad blocking on facebook, failblog, and fark with firefox’:

  1. momo on 29 Jun 2011 at 9:22 pm: 1

    That is only helpful if you use firefox

Comments are closed.