Blocking Facebook ads with Privoxy

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)

Are you using http or https to connect to facebook?

Similar Messages

  • Privoxy: cannot get rid of google & facebook ads, or social buttons

    Hi all,
    I wanted to give privoxy a try. For starters, I'd like to do some adblocking, so I followed the wiki instructions for adblocking with privoxy. In particular, I used the privoxy-blocklist script the wiki mentions to download and use the following adblock lists:
    easylist
    easyprivacy
    fanboy-annoyance
    fanboy-social
    fanboy-antifacebook
    malwaredomains_full
    void-gr-filters (for ads in Greek sites)
    Also, again as per the wiki, I added
    {+block-as-image{Facebook "like" and similar tracking URLs.}}
    www.facebook.com/(extern|plugins)/(login_status|like(box)?|activity|fan)\.php
    platform.twitter.com/widgets/follow_button?
    plusone.google.com
    in my /etc/privoxy/user.action file.
    Although now I have adblocking working, I can't get rid of google ads, facebook ads, or social buttons (e.g. facebook like, etc).
    I googled around, and tried all sorts of things. For instance, the following guides did not work for me:
    http://www.willamowius.de/privoxy.html
    http://superuser.com/questions/668608/c … th-privoxy
    Any suggestions anybody?
    EDIT: I'm using privoxy 3.0.21-2 with firefox 30
    Last edited by geo909 (2014-06-25 21:36:31)

    brebs wrote:
    Are they textual ads, or pictures?
    Textual ads are harder to get rid of - this is where greasemonkey is useful.
    Thanks.. Though adblock plus would get rid of those. Also I wonder if installing privoxy and greasemonkey
    slows down my firefox.. All in all, for ad blocking, I'm thinking of going back to adblock plus.

  • CSC10 - Blocking facebook with https

    Can´t find how to block facebook when end user tries using https, is not even register the blocking access in CSC log, all https filtering options are enable.  Can you give me some ideas how to do this.
    CSC-10 module version 6.6.1125.0
    ASA version 8.4(3)
    ASDM version 6.4(7)
    Thanks,
    Juan Carlos Arias

    You can retrieve the certificate and check details like who issued certificates and expiration dates of certificates.
    * Click the link at the bottom of the error page: "I Understand the Risks"
    Let Firefox retrieve the certificate: "Add Exception" -> "Get Certificate".
    * Click the "View..." button and inspect the certificate and check who is the issuer.
    You can see more Details like intermediate certificates that are used in the Details pane.

  • How do I block a website so my kids cannot get on it? I am trying to block facebook.

    I just want to be able to block Facebook and certain sites so my child cannot have access to them.

    I do it with software called FB Limiter. http://www.facebooklimiter.com

  • How to Block Facebook Website

    How to Block Facebook Website
    All URL I put in Access Restriction (Internet Access Policy) have been blocked, except for www.facebook.com.
    Is there a problem with my WRT160N?
    Please help.
    - Thanks

    This model must use exact url blocking in which case blocking Facebook can't reliably be done.
    If you had a dns server you could specify a bogus ip address for Facebook on your network.
    I had to move to the AE series routers because the parental control is the best and blocking Facebook was easy with only "facebook.com" as the url.
    Please remember to Kudo those that help you.
    Linksys
    Communities Technical Support

  • Blocking Safari Ads on iPad?

    Is there any way to block the annoying, never-ending, screw up my browsing experience, ads when using Safari on the iPad. Every time I go to a sight with pop up ads the page I want disappears and a **** ad shows up or some other stupid ad and when I go back to the original page we jump off again to the **** ad over and over. I can never get to places like Amazon or eBay or any decent website because of the ridiculous ads. On my MacBook I can shut off Javascript in Safari and that will disable the pop ups but where are the settings for the Safari browser on the iPad?
    And if Apple doesn't provide a way to block them then WHAT ARE THEY WAITING FOR?
    I can't find an "app to block Safari Ads" anywhere! WHY NOT???
    So annoying - ruins my browser experience on the iPad.

    Thanks Carolyn. I went into Settings/Safari and my Block Pop-ups was on and so was Javascript. I disabled Javascript. Not the best solution because there are times when I need Javascript (if I want to see a picture that is enlarged using Javascript)or if I want to leave a comment (which again, relies on Javascript). What we iPad users need is a serious. What advertisers are doing now is creating the popups in Javascript in an attempt to get around pop-up blockers. When you come across this on the iPad your main screen disappears and a new screen appears with the full page ad. Thus, if I want to leave a comment I hit the comment button and the page fades away and is replaced with an ad page. I have to jump back to the grid and get my comment page back. The minute I try posting in the comment box the page disappears and up pops the Javascript ad page. It just repeats over and over. We don't have this problem on a regular Mac computer using Safari although you do with Firefox (and there again, you have to disable Javascript).
    So something has to be done to correct this problem. Advertisers have figured out a way to 'disable' pop-up ads. (Apple - please fix or a third party plug-in would be welcome!)

  • My email has been hacked by an adware sending me 12 ads per day.  How can I block those ads?

    My email has been hacked by an adware sending me 12 ads per day.  How can I block those ads?

    Helpful Links Regarding Malware Problems
    If you are having an immediate problem with ads popping up see The Safe Mac » Adware Removal Guide and The Safe Mac » Adware Removal Tool. Open Safari, select Preferences from the Safari menu. Click on Extensions icon in the toolbar. Disable all Extensions. If this stops your problem, then re-enable them one by one until the problem returns. Now remove that extension as it is causing the problem.
    An excellent link to read is Tom Reed's Mac Malware Guide.
    Also, visit The XLab FAQs and read Detecting and avoiding malware and spyware.
    See these Apple articles:
      Mac OS X Snow Leopard and malware detection
      OS X Lion- Protect your Mac from malware
      OS X Mountain Lion- Protect your Mac from malware
      OS X Mavericks- Protect your Mac from malware
      About file quarantine in OS X
    If you require anti-virus protection Thomas Reed recommends using ClamXAV. (Thank you to Thomas Reed for this recommendation.)
    From user Joe Bailey comes this equally useful advice:
    The facts are:
    1. There is no anti-malware software that can detect 100% of the malware out there.
    2. There is no anti-malware that can detect anything targeting the Mac because there
         is no Mac malware in the wild, and therefore, no "signatures" to detect.
    3. The very best way to prevent the most attacks is for you as the user to be aware that
         the most successful malware attacks rely on very sophisticated social engineering
         techniques preying on human avarice, ****, and fear.
    4. Internet popups saying the FBI, NSA, Microsoft, your ISP has detected malware on
        your computer is intended to entice you to install their malware thinking it is a
        protection against malware.
    5. Some of the anti-malware products on the market are worse than the malware
        from which they purport to protect you.
    6. Be cautious where you go on the internet.
    7. Only download anything from sites you know are safe.
    8. Avoid links you receive in email, always be suspicious even if you get something
        you think is from a friend, but you were not expecting.
    9. If there is any question in your mind, then assume it is malware.

  • Hello, I have a question for you. receipt of some Internet providers or notices notifications on the lock screen and I consume the battery on my iPhone 4S. would you please tell me how do I block these ads in blue letters on the screen me? thanks

    hello, I have a question for you. receipt of some Internet providers or notices notifications on the lock screen and I consume the battery on my iPhone 4S. would you please tell me how do I block these ads in blue letters on the screen me? thanks

    Hi demir67,
    Welcome to the Support Communities!
    The articles below will show you how to block text messages from your iPhone:
    iPhone User Guide for iOS 7:
    Send and receive messages - iPhone
    http://help.apple.com/iphone/7/#/iph01ac18d71
    Block unwanted messages. On a contact card, tap Block this Caller. You can see someone’s contact card while viewing a message by tapping Contact, then tap the "i" with the cirle.   You can also block callers in Settings > Phone > Blocked. You will not receive voice calls, FaceTime calls, or text messages from blocked callers.
    iOS 7: Understanding call and message blocking
    http://support.apple.com/kb/HT5845
    Notification Center - iPhone
    http://help.apple.com/iphone/7/#/iph6534c01bc
    Set notification options. Go to Settings > Notification Center. Tap an app to set its notification options. You can also tap Edit to arrange the order of app notifications.
    Cheers,
    Judy

  • How do I permanently block unwanted ads on-line?

    An ad for Consumer News that's somehow associated with Google about an amazing offer has kept popping up and preventing altogether my getting to anything else on my laptop. I'm hoping someone will be able to tell me how I can block that thoroughly obnoxious ad and any other unwanted ads.

    If excess popups are occuring when you load websites, you may have disabled popup blocking. See [[Pop-up blocker]] for steps to enable.
    The most likely cause of excess popups on sites that should not have them, such as Google search pages, is spyware.
    # Ensure you don't have any Firefox extensions that may be affecting the behavior of websites. See [[Troubleshooting extensions and themes]] for instructions on testing whether extensions are causing a problem.
    2. See [[Is my Firefox problem a result of malware]] to determine whether spyware is likely causing the issue
    If you determine malware is the problem, You can run and update the following '''free''' antivirus software:
    1. Malwarebytes (Free version) - http://www.malwarebytes.org
    2. Spybot Search & Destroy - http://www.safer-networking.org
    3.Spyware Terminator - http://www.spywareterminator.com
    In addition, there are a number of forums you can use to help get rid of your infection. These include:
    *[http://www.bleepingcomputer.com/forums/ Bleeping Computer]
    *[http://forums.spybot.info/ Safer-Networking Forums]
    *[http://www.spywarewarrior.com/index.php Spyware Warrior Forums]
    *[http://www.spywarewarrior.com/index.php SpywareInfo Forums]
    If you wish to block banner ads on websites , see the [https://addons.mozilla.org/en-US/firefox/addon/1865/ Adblock Plus] extension.

  • Block cash sales with credit limit blocking from creation of outbound

    Hello everyone,
    Can you please teach me how to block cash sales with credit limit blocking from creation of outbound delivery?  Currently, outbound delivery can not be created only for charge sales with credit limit block.  Problem is, we can not confirm the cash sales.  We have to delete first the outbound then unblock the S.O. before creating a new Outbound.
    Thanks in advance.
    Ridgy

    Cash sale transaction will not have credit limit block, as the transaction is based on receipt of immediate payment. But if you still want to try the same, configure a 'Z' transaction Type for cash sale (Copy of Cash Sale - Sales Order Type) and maintain Credit check field as 'D' and try the scenario.
    Ideally there should not be a Credir Check foe a Cash Sale Scenario.
    Regards,
    Rajesh Banka

  • Accounting Validation for blocking TDS posting with T-code

    Dear Expert,
    I have a requirement like below in OB28 Accounting Validation:-
    I want to block Accounting posting with F-02 T code with Wht GL code Posting.
    I have written:-
    Prequisite:-
    BKPF-BUKRS = '1020'
    SYST-TCODE = 'F-02'
    Check:-
    BSEG-HKONT='403625' (which is a TDS liabilityGL code)
    Message:- Error
    But it is not working, The document with F-02 and GL code 403625 is getting posted
    Please advise.
    Regards,
    Alok

    A small correction in Validation rule.
    Check:-
    BSEG-HKONT<>'403625' (which is a TDS liabilityGL code)
    BSEG-HKONT should not be equal to 403625
    Correct that and try posting.

  • How do I make a facebook page with a premade template? [was:help]

    how do I make a facebook page with a premade template i bought on etsy? I have asked this 10 times now In all diffrent section here. I guess I dont even know how to ask a question in photo shop?? I am very glad I am only on the trial. This is soooo NOT user friendly!

    Tip for a forum newbie: please use a descriptive subject header to post your query so we have some idea of what your question relates to.
    "Help" tells us nothing. Try "how do I make a facebook page with a premade template?"
    You've posted this question 3 times in 3 different forums but we've no idea which Adobe software you're using or where your template is from. There is a reply in the Photoshop forum asking for more information.
    http://forums.adobe.com/thread/1447416
    Please continue the discussion there.

  • I just added my Facebook contacts with my iphone Contacts, how can I include those in my mac Contacts?

    I just added my Facebook contacts with my iphone Contacts, how can I include those in my mac Contacts?

    I did that, but the recently added FB contacts in my iphone are not on my mac's contacts.

  • Galleries Merge when updating Facebook album with tags.

    The problem that I have is that when i try to update a facebook album with the faces I have reconized and have them with there email account so facebook can auto tag them they merge diferente faces galleries. They are in teh same album but I really don't know why this happens.
    Someone else?

    I have this exact same problem and it is very difficult to find something. This thread and one in macrumors is the only thing I have found with no anwers yet.
    I thought it was an iPhoto 09 problem, and so I called customer service, but they told me it was more a facebook problem than an Apple one. This is in fact true, and to prove it I did the following:
    Using the same computer, the same iPhoto 09, I uploaded the same photos to my wife's account and my own account. This was done separately and just for test reasons. With my wife's account, there was no problem at all, all tags done nicely, everything perfect. With my account though, I got multiple tags for the same person in a single picture. Even worse, everytime I start iPhoto my photos were re-tagged so I ended up with several dozens of tags.
    Then I checked and everything in the facebook account settings was exactly the same for both accounts. The only difference between the two is that mine was created two days ago, while my wife's been there for two years.
    So I created a new account for my daughter, again just for test reasons, and my daughter's has the same issue of multiple tags for a single face.
    This made me conclude the Apple representative was really honest when he says it's a facebook problem. But I beg you that if you find any solution, please post it anywhere here. This is driving me nuts.
    Best regards

  • How to use facebook  + skype with new Ipad? it needs flash player it seems...

    how to use facebook + skype with new Ipad? it needs flash player it seems...

    get the facebook and skype apps from the app store and there is no need flash.

Maybe you are looking for

  • Resolution Limitations with Second Display

    What´s the maximum video resolution macbook MB403 can drive? I´m using a second display (Samsung wide screen syncMaster 226BW, and after configuring it at 1680x1050 - which is the usual resolution for this type of display, I realized that the actual

  • How do I restore my video/audio in the Timeline of my project?

    The whole timeline has windows that are red that say Media Offline.  Where did my video/audio go?? Where do I find it?  How do I restore it into the timeline I was working on with the project.  When I open the project I also get a question that wants

  • Patch Guide for EP6

    Hi, I have just migrated from EP5 to EP6 version 6.0.2.4.1 Portal_Service_Pack_2. I have downloaded patch 33 for (Portal,Sapinst,J2EE) Where can I find documentation relating to the patch sequence and can I go directly to this patch level. Kind regar

  • Error updating SAP kernel to 7.01(32 bits)

    Hi experts,   I update our Solution manager kernel to 7.01 but fail when starting sapstartsrv.exe. The error message is "error 14001: this application has failed to start becuase the application configration is incorrect. reinstalling the appliaction

  • Individual entries cannot be put into the change request (message SV141)

    Hi, I am trying to save an activity that I have created for SOP (Production>SOP>Function>Mass Processing>Define Activities). When I click on the IMG node, I get the following message: "Individual entries cannot be put into the change request Message