You are not logged in.
The text + photo ads on the side of Facebook annoy the hell out of me. They were blocked with AdBlock Plus in Firefox but since moving to Uzbl + Privoxy, they're back. I've found the following CSS which supposedly blocks the ads:
#ssponsor, .footer_ad, .banner_ad, .social_ad, .ad_capsule, .sidebar_ads, .adcolumn, .admarket_ad, .sidebar_item.sponsor,
.emu_sponsor, .home_sponsor, .UIHomeBox_Sponsored { display: none !important; }
However, inspecting the page code, it looks like the ads are now contained in a div with the title "ego-unit",
I'm sure there's a way to use this in the user.filter file but I don't speak Perl or CSS. I haven't found any Privoxy rules online which successfully block these ads.
In the default.filter file, they give the following example for blocking Google Ads by CSS:
s@</head>@<style type="text/css">\n\
/* Style sheet inserted by Privoxy's google filter. */\n\
\#fbc, \#fbl, \#ra, .rhh {visibility: hidden !important;}\n\
\#tpa1,\#tpa2,\#tpa3,\#tpa4,\#tpa5,\#tpa5, \#spl, .ch, \#ads,\
\#toolbar, \#google_ads_frame, \#mbEnd {display: none !important;}\n\
.main_body, .j, \#res, .med, .hd, .g, .s\n\
{width: 99%; max-width: 100%; margin-left: 0; margin-right: 0;}\n\
</style>\n$0@
s@<div style=\"padding-top:11px;min-width:500px\">@<div id="main_body">@
s@(<table cellspacing=0 cellpadding=0 width=25% align=right bgcolor=\#ffffff border=0\
|</font></td></tr></tbody></table><table align=\"right\" bgcolor=\"\#ffffff\"\
|<table cellspacing=0 cellpadding=0 align=right bgcolor=\#ffffff border=0\
|<table style=\"clear:both\" align=right width=25% cellspacing=\"0\" cellpadding=\"0\"\
border=\"0\" bgcolor=\"\#ffffff\")@$0 id="ads"@
s@(<br clear=all><table)( border=0 cellpadding=9><tr><td)@$1 id="toolbar"$2@
However, reading this melts my brain. Has anyone else had success in blocking such ads? Care to share any tips or resources on how I can do it?
Thanks!
Last edited by jakobcreutzfeldt (2011-08-31 10:34:26)
Offline
Are you using http or https to connect to facebook?
R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K
Offline