Ads. They suck. You never click them and they don’t benefit your life whatsoever.
If this sounds like you, I will now let you in to a secret way of hiding them that no company ever wants you to find out…
Not really, it’s just CSS styles. First step is to download the Stylish add-on for Mozilla Firefox.
After you have installed the add-on and restarted Firefox, visit Facebook.com.
In the bottom right corner of Firefox, there will be an S icon.
![]()
Clicking this will open up a menu, where you can choose to “Write a New Style”. Click the “For facebook.com” option.

This will bring up a new window where you can enter your new styles to override the Facebook developers’ defaults. I have added a screenshot to show where the new styles go.
Now you can replace the text in the window with the following rules:
@-moz-document domain("facebook.com") {
/* Updated 16-09-2012 */
/* Hide ads on Home */
#rightCol #pagelet_ego_pane_w,
#pagelet_ads_when_no_friend_list_suggestion { display: none; }
/* Hide Right Column Footer on Home */
#rightCol #pagelet_rhc_footer { display: none; }
/* Hide ads on Timeline and Photo View */
.fbTimelineSideAds,
#rightCol #pagelet_side_ads,
#fbPhotoSnowliftAdsSide,
div[class*=snowliftAds],
._24q .ego_column:not(.egoOrganicColumn) { display: none; }
/* Hide ads on Friend's Profiles */
#rightCol #pagelet_ego_pane .ego_column:not(.egoOrganicColumn),
[data-referrer*=pagelet_side_ads] { display: none; }
/* Hide ads on Comment View */
.UIStandardFrame_SidebarAds #pagelet_ego_pane .ego_column:not(.egoOrganicColumn) { display: none; }
/* Hide "People you may know" on Comment View */
.UIStandardFrame_SidebarAds #pagelet_ego_pane .egoOrganicColumn { display: none; }
/* Hide ads and sponsored stories on Message View */
#MessagingNetegoSidebar #pagelet_ego_pane .ego_column:not(.egoOrganicColumn),
#MessagingNetegoSidebar .ego_column:not(.egoOrganicColumn) { display: none; }
/* Hide ads on Lists */
#pagelet_ads_when_no_friend_list_suggestions .ego_column:not(.egoOrganicColumn) { display: none; }
}
Click the “Preview” button and you should see the ads disappear in the background. Click “Save” and the window will close. The styles will now be loaded when you visit any part of Facebook.
Let me know if this doesn’t work, or stops working. The styles above are heavily dependent on how Facebook developers have named the Ad elements on the site.
If they, therefore, realise another lovely update the ads might suddenly reappear and I will have to spend another 30 seconds writing a new style and 10 seconds updating this post : )
If you feel you can’t trust this, or it looks like something messed up, you can find the “Uninstall” (to remove it) or “Disable” option by right-clicking on the style when visiting Facebook.

UPDATE [06/09/12]: Updated to hide another case of ads on photo viewer.
UPDATE [06/09/12]: Updated to hide more ads on news feed page and friends’ timelines.
UPDATE [26/08/12]: Updated to hide more ads on photo view page.
UPDATE [30/07/12]: Updated to hide ads on message view page.
UPDATE [30/06/12]: Updated to hide ads on lists.
UPDATE [03/06/12]: Updated to hide ads on friend’s profiles.
UPDATE: Added styles to hide new ads on the new timeline profile.
UPDATE [02/11/11]: Updated with new css to reflect recent code changes by FB devs. Thanks, “R Preston Berrett”.
UPDATE [02/12/11]: Updated with new css to reflect changes to the FB site. Added better comments to explain what each bit is doing.
UPDATE [02/12/11]: Updated with new css to hide ads on “pages”. Thanks “J Greener”.

November 2, 2011 at 02:16
I've been using this for over a month now, and it has been working perfectly until today, when I noticed that the ads are back. I spent about 15 minutes trying to figure out how to do it myself, but figuring out the syntax is a little difficult than I thought it would. Would you mind updating the post? Thanks!
November 2, 2011 at 19:14
I've put in a quick edit – hopefully that will do the trick! Let me know.
November 3, 2011 at 15:01
Yes, that did the trick.
So, I'm a Computer Science major in school right now. And last night I took a swing at modifying the script, and got as far as removing the ads from my home page. But, this morning I noticed that my edit did not remove the ads when I visited a friends page. Again, thanks for this.
February 12, 2012 at 13:50
No problem. I have just updated it again because their devs have changed a few things.
Pingback: How to Hide Facebook Ads in Google Chrome with Stylish | Ash Clarke
February 13, 2012 at 19:14
Ashley. You are my hero. You make bad ads go away. Ads can get very irritating when I'm on the Facebook looking for hot penguin ladies. Facebook ads make me even more evil than I am most of the time. Seriously – I do awful things.
All the best, and keep up the good work, Mr C. If the ads re-appear, I'ma comin' for you….
February 13, 2012 at 22:08
That's ok. Glad I could help
I'm sure I know you from somewhere…
February 13, 2012 at 21:53
The ads are back. You're dead.
February 13, 2012 at 22:09
You'll have to say which page and what section because each part is different
Then I can add the code in with the rest.
Thanks!
February 17, 2012 at 08:59
Hi Ash, will these fixes (and thank you!!) hide ads when others view our business page?
February 19, 2012 at 21:27
Hi "J",
Just checked and it wasn't so I have just updated with another line to hide ads on pages.
Hope this helps!
February 17, 2012 at 11:51
Hi “J”,
I’m pretty sure they will as Facebook pages typically follow the same layout.
I will check during the weekend and make sure.
Thanks!
September 9, 2012 at 11:00
great extension. Like it!!!! – thx for your work!
November 24, 2012 at 18:53
you love this? [URL=http://www.louis-vuitton–outlet.net/ – louis vuitton outlet[/URL – and check coupon code available qHddVwru [URL=http://www.louis-vuitton–outlet.net/ – http://www.louis-vuitton–outlet.net/ [/URL -
November 24, 2012 at 19:38
buy coach online stores pyYYrFgH [URL=http://www.cheap-coach–handbags.net/ – knock off coach bags[/URL – to get new coupon fcgEUgMa [URL=http://www.cheap-coach–handbags.net/ – http://www.cheap-coach–handbags.net/ [/URL -
November 24, 2012 at 19:44
buy cheap uggs online YEKdVfpa [URL=http://www.uggs-outlet–online.org/ – discount uggs[/URL – , just clicks away pYufpSXa [URL=http://www.uggs-outlet–online.org/ – http://www.uggs-outlet–online.org/ [/URL -
November 24, 2012 at 23:09
check this link, cheap prada handbags mFIoeTty [URL=http://www.cheap-prada-bags.net/ – prada outlet online[/URL – suprisely QBtMNMte [URL=http://www.cheap-prada-bags.net/ – http://www.cheap-prada-bags.net/ [/URL -
November 24, 2012 at 23:38
check aaa replica zokSmblI [URL=http://www.aaa-replica–handbags.org/ – high quality replica handbags[/URL – to take huge discount SNvYkQGS [URL=http://www.aaa-replica–handbags.org/ – http://www.aaa-replica–handbags.org/ [/URL -
November 24, 2012 at 23:51
you love this? replica handbags wholesale SEgQvbQK [URL=http://www.replica-handbags–wholesale.com/ – wholesale replica handbags[/URL – for less cCAomflF [URL=http://www.replica-handbags–wholesale.com/ – http://www.replica-handbags–wholesale.com/ [/URL -
November 25, 2012 at 00:03
you must read [URL=http://www.louis-vuitton–outlet.net/ – loui vuitton outlet[/URL – to your friends czjyoxaf [URL=http://www.louis-vuitton–outlet.net/ – http://www.louis-vuitton–outlet.net/ [/URL -
November 25, 2012 at 00:11
you love this? aaa replica handbags anfuZGjp [URL=http://www.aaa-replica-handbags.net/ – top replica handbags[/URL – for promotion code xPWZbXvI [URL=http://www.aaa-replica-handbags.net/ – http://www.aaa-replica-handbags.net/ [/URL -
November 25, 2012 at 04:35
buy best fake chanel handbags NxKnoxgd [URL=http://www.fake-chanel–bags.org/ – chanel handbags shop online[/URL – suprisely THuDbELw [URL=http://www.fake-chanel–bags.org/ – http://www.fake-chanel–bags.org/ [/URL -
November 25, 2012 at 10:47
get cheap cheap prada handbags RPxVqHxt [URL=http://www.cheap-prada-bags.net/ – cheap prada handbags[/URL – , just clicks away YptMnkSd [URL=http://www.cheap-prada-bags.net/ – http://www.cheap-prada-bags.net/ [/URL -
November 25, 2012 at 11:15
I am sure you will love replicas aaa NydOskcO [URL=http://www.aaa-replica–handbags.org/ – faux louis vuitton[/URL – for gift LzStPfjV [URL=http://www.aaa-replica–handbags.org/ – http://www.aaa-replica–handbags.org/ [/URL -
November 25, 2012 at 11:16
buy a replica handbags wholesale GubYztCC [URL=http://www.replica-handbags–wholesale.com/ – wholesale replica handbags[/URL – to get new coupon fbBjfOcC [URL=http://www.replica-handbags–wholesale.com/ – http://www.replica-handbags–wholesale.com/ [/URL -
November 25, 2012 at 11:51
I am sure you will love aaa replica handbags QFBFvScj [URL=http://www.aaa-replica-handbags.net/ – aaa replica handbags[/URL – with confident jxILMXlA [URL=http://www.aaa-replica-handbags.net/ – http://www.aaa-replica-handbags.net/ [/URL -
November 25, 2012 at 15:11
click to view [URL=http://www.karen-millen-uk.net/ – karen millen outlet online[/URL – and check coupon code available xwYSqmyc [URL=http://www.karen-millen-uk.net/ – http://www.karen-millen-uk.net/ [/URL -
November 25, 2012 at 16:01
check chanel handbags outlet ulAQtlbV [URL=http://www.fake-chanel–bags.org/ – chanel discount[/URL – at my estore FxEJSYtR [URL=http://www.fake-chanel–bags.org/ – http://www.fake-chanel–bags.org/ [/URL -
November 25, 2012 at 18:31
get [URL=http://www.louis-vuitton–outlet.net/ – louis vuitton outlet[/URL – for gift JrbebGtb [URL=http://www.louis-vuitton–outlet.net/ – http://www.louis-vuitton–outlet.net/ [/URL -
November 25, 2012 at 19:07
sell aaa replica bags aDtMUxbm [URL=http://www.aaa-replica–handbags.org/ – aaa handbags[/URL – , just clicks away ntJLefBS [URL=http://www.aaa-replica–handbags.org/ – http://www.aaa-replica–handbags.org/ [/URL -
November 25, 2012 at 19:32
buy best coach purses outlet online zYJQnsAy [URL=http://www.cheap-coach–handbags.net/ – coach handbags cheap[/URL – and get big save DRabCaVj [URL=http://www.cheap-coach–handbags.net/ – http://www.cheap-coach–handbags.net/ [/URL -
November 25, 2012 at 21:32
for cheap prada bags kEuELIuz [URL=http://www.cheap-prada-bags.net/ – cheap prada bags[/URL – at my estore fIeOzpKX [URL=http://www.cheap-prada-bags.net/ – http://www.cheap-prada-bags.net/ [/URL -
November 25, 2012 at 22:04
you must read aaa replica bags YVtvVXUw [URL=http://www.aaa-replica–handbags.org/ – high quality replica handbags[/URL – suprisely SsyxcnZj [URL=http://www.aaa-replica–handbags.org/ – http://www.aaa-replica–handbags.org/ [/URL -
November 28, 2012 at 02:58
order an [URL=http://www.ralph–lauren-outlet.com/ – ralph lauren online outlet[/URL – for less NjnQwqQo [URL=http://www.ralph–lauren-outlet.com/ – http://www.ralph–lauren-outlet.com/ [/URL -
November 28, 2012 at 06:55
That the difference between that the right word and the just about right word is
more than just a fine line! it’s like the difference between a lightning bug and the
lightning!
November 28, 2012 at 14:54
purchase [URL=http://www.louis-vuitton-uk.info/ – louis vuitton shop online uk[/URL – , just clicks away qgfOfEtl [URL – http://www.louis-vuitton-uk.info//URL -
November 28, 2012 at 16:51
vista [URL=http://2-store.net/ – louis vuitton replicas[/URL – tomar gran descuento KduIIBvl [URL=http://2-store.net/ – http://2-store.net/ [/URL -
November 28, 2012 at 17:06
to buy [URL=http://www.burberry–outlet–online.net/ – burberry raincoat[/URL – online UeteJGhY [URL=http://www.burberry–outlet–online.net/ – http://www.burberry–outlet–online.net/ [/URL -
November 28, 2012 at 17:18
view [URL=http://encyklopediaverbena.pl/index.php?title=User:burberryoutlet564 – encyklopediaverbena.pl/index.php?title=User:burberryoutlet564[/URL – at my estore fBaDplTG [URL=http://customersupportimages.iplay.com/index.php?title=User:burberryoutlet564 – http://ii-ego.org/index.php?title=User:burberryoutlet564 [/URL -
November 28, 2012 at 17:55
sell [URL=http://www.ralph–lauren–outlet.net/ – ralph lauren outlet[/URL – to your friends LserFdUk [URL=http://www.ralph–lauren–outlet.net/ – http://www.ralph–lauren–outlet.net/ [/URL -
November 28, 2012 at 18:13
must look at this [URL=http://www.moncler–outlet.com/ – moncler[/URL – and check coupon code available tUblTXBk [URL=http://www.moncler–outlet.com/ – http://www.moncler–outlet.com/ [/URL -
November 28, 2012 at 20:16
I am sure you will love gucci handbag outlet rThxJAmm [URL=http://www.gucci–outlet–online.net/ – gucci online shop[/URL – to your friends oEjNvlVg [URL=http://www.gucci–outlet–online.net/ – http://www.gucci–outlet–online.net/ [/URL -
November 28, 2012 at 21:25
check burberry t shirt qZOYBByg [URL=http://www.burberry–outletonline.com/ – burberry usa[/URL – for gift EHnxdhqK [URL=http://www.burberry–outletonline.com/ – http://www.burberry–outletonline.com/ [/URL -
November 28, 2012 at 21:42
you must read [URL=http://www.guccioutlet–online.org/ – gucci shop online[/URL – to get new coupon mSSNBSUo [URL=http://www.guccioutlet–online.org/ – http://www.guccioutlet–online.org/ [/URL -
November 29, 2012 at 00:04
para un [URL=http://2-store.net/ – neverfull louis vuitton[/URL – para el c¨®digo de promoci¨®n ppYRlmHw [URL=http://2-store.net/ – http://2-store.net/ [/URL -
November 29, 2012 at 00:31
get [URL=http://www.burberry–outlet–online.net/ – burberry outlet[/URL – to take huge discount xWUmhkwl [URL=http://www.burberry–outlet–online.net/ – http://www.burberry–outlet–online.net/ [/URL -
November 29, 2012 at 00:40
I’m sure the best for you fake chanel HLsMubzP [URL=http://www.fake-chanel–bags.net/ – chanel knockoffs[/URL – , just clicks away nphcfhYx [URL=http://www.fake-chanel–bags.net/ – http://www.fake-chanel–bags.net/ [/URL -
November 29, 2012 at 01:03
you must read [URL=http://wiki.adaptivesoft.com.br/index.php?title=User:burberryoutlet564 – wiki.adaptivesoft.com.br/index.php?title=User:burberryoutlet564[/URL – for promotion code SpNOgJmD [URL=http://efektywnie.com/index.php?title=User:burberryoutlet564 – http://wiki.akipkro.ru/index.php?title=User:burberryoutlet564 [/URL -
November 29, 2012 at 01:36
you must read [URL=http://www.ralph–lauren–outlet.net/ – cheap ralph lauren[/URL – , just clicks away WnONaTuJ [URL=http://www.ralph–lauren–outlet.net/ – http://www.ralph–lauren–outlet.net/ [/URL -
November 29, 2012 at 02:10
check [URL=http://www.moncler–outlet.com/ – moncler outlet[/URL – to get new coupon rNrsyzGu [URL=http://www.moncler–outlet.com/ – http://www.moncler–outlet.com/ [/URL -