Prepare!

Lee Harvey's Zombie Hit Parade

My User StyleSheet for Facebook

, , , , ,

Can you guess what it does?

To view/download, click here:

A#adcolumn_more_ads,
A.ad_title,
A.next_ad,
DIV#adcolumn,
DIV#adcolumn_advertise,
DIV#highlights_ad,
DIV#home_sponsor,
DIV#home_sponsor_nile,
DIV#sidebar_ads,
DIV#ssponsor,
DIV.adcolumn,
DIV.adcolumn_header,
DIV.adcolumn_wrapper,
DIV.ads_feedback,
DIV.clearfix UIHotStory_First UIHotStory UIHotStory_Ad UIHotStory_Medium,
DIV.ego_ad2,
DIV.ego_column,
DIV.ego_unit,
DIV.emu_ad,
DIV.emu_sponsor,
DIV.UIHotStory UIStory emu_sponsor,
DIV.UIHotStory_Ad,
DIV.UIHotStory_Sponsored,
DIV.UIStandardFrame_SidebarAds,
DIV.UIWashFrame_SidebarAds,
IMG.spritemap_icons sx_ad,
SPAN.sponsored
  { display: none !important; }

Yep, it hides those annoying ads -- typically along the right edge of the screen.

If you're an Opera user:

  1. Save this facebook.css file to your local drive.
  2. Visit Facebook.com with Opera
  3. Right-click on the page, select "Edit Site Preferences..."
  4. Goto the Display tab, and click the [Choose...] button.
  5. Locate the facebook.css file saved-off in step 1.
  6. Press [OK] to close Site Preferences, then reload the Facebook page.

Enjoy.

NOTE: This blog entry has been updated to reflect the new Facebook redesign of March 14, 2009.
This blog entry has been updated (1/27/2010) to reflect new ads on profile pictures.
This blog entry has been updated (12/8/2010) to block the new ego sidebars.

Plug: FineTune.com - Streaming music for WiiAT&T's CingularOne.com Website Hijack

Comments

HenryAOTEAROAnz Thursday, February 26, 2009 11:43:27 AM

Thankyou i am soooo going to enjoy life without those ads on the right! They drive me loopy. Cheers.

dapxin Saturday, January 2, 2010 10:55:48 AM

how can I make this into userjs ?

Lee HarveyLee_Harvey Saturday, January 2, 2010 2:11:27 PM

It's not as easy, nor as effective, as a UserJS script -- since all these Facebook CSS style elements already exist, and would need to be overwritten post-document load. I advise against using UserJS for CSS.

JIsildur Thursday, January 7, 2010 12:17:12 AM

I'm actually currently using a q&d UserJS script I wrote that does the same thing, but you have a point -- I do see the ads until the page finishes loading -- so I guess your solution is a bit more effective (and less clunky).

RainyShadow Sunday, February 14, 2010 8:56:39 AM

Would it be possible to convert the CSS from http://bit.ly/fb_round to be usable in Opera?
I've tried to use it directly, but it doesn't seem to work sad And i know nothing about CSS syntax, pfff...

Lee HarveyLee_Harvey Sunday, February 14, 2010 4:04:37 PM

Most likely, yes. But I'm not going to convert someone else's original work. I would suggest contacting the author and ask if there's a suitable UserCSS or UserJS for Opera.

RainyShadow Tuesday, February 16, 2010 7:04:50 PM

Done some messing with it bigsmile
If anyone would like give it a try - http://files.myopera.com/RainyShadow/CSS/FB_round.css

P.S. uses 10.50 stuff

dapxin Monday, May 31, 2010 2:28:00 PM

wo sere o. ( thx):

dapxin Wednesday, August 4, 2010 9:29:16 PM

seems to break facebook structure now....or is it me ?

intergalacticninja Thursday, August 5, 2010 2:28:35 AM

Originally posted by dapxin:

seems to break facebook structure now....or is it me ?


Happens to me too.

greenhawk117 Wednesday, August 25, 2010 5:38:06 AM

Figured out how to have it block ads on Facebook profile pages without breaking the page.

Add the following to your .css file:

DIV#sidebar_ads .fbEmuLegacy,
DIV#sidebar_ads .adcolumn_wrapper
{ display: none; }

mytoast Wednesday, December 8, 2010 11:07:57 AM

Opera redesigned the profile, so the stylesheet isn't working anymore :-/
Can someone tell please how to block the annoying sponsored sidebar items from Facebook?

Lee HarveyLee_Harvey Wednesday, December 8, 2010 1:58:52 PM

I just updated this blog entry (and corresponding file download) to block 2 new Facebook items:

DIV.ego_column
DIV.ego_unit

Hope this helps -- it seems to work for me (at the moment). However, I don't think I'm seeing the new redesigned profiles yet. If it changes much, I'll update this post again. Stay tuned...

mytoast Wednesday, December 8, 2010 3:05:06 PM

Thanks, this works great! smile

Write a comment

New comments have been disabled for this post.