Saturday 1 June 2013

Remove "ADDS" From Facebook


Facebook earn their money through the display of ads to the user, usually in the sidebar. Nobody said you actually have to see them in order to use the social network. Although this might be some sort of contract breach if you don't, they're not gonna find out anyway. Before turning away because you think this might be some sort of complicated hack and it's gonna take hours for you to even understand what's going on, be assured that everybody who can at least start up his browser and type in a URL can also make use of this easy solution.
Now look at the screenshot below. This is what will happen if you follow the instructions in this article: The "sponsored" ads will be completely gone on both the profile view (Timeline) and the home screen (not shown here). Even the ads in the photo gallery disappear! Well, if you still want to display them, you can click the "See All" link.
Facebook Ads Removed!
Cool, isn't it? If you want to have it right now without all the explanations just scroll down to the section that deals with your beloved browser and skip the next two sections.
You can find a lot of solutions to achieve this and there are many apps out in the wild, such as AdBlock Plus, AdBye for Firefox or commercial ads blocker for Chrome. Common ad/script blockers such as NoScript for Firefox do usually not work on Facebook since all the ads are coming from the facebook.com domain itself, which means in order to block ads you would have to block the whole Facebook script which in turn would render the website useless.
Anyway, I am not a big fan of custom ad blocker addons since unless you have a look at the source code (which might or might not be open) you do not know what exactly happens and secondly, those addons might stop working as soon as you update your browser to a newer version because of compatibility reasons.
TWO TECHNIQUES TO GET RID OF ADS
In the following section, I will present two different techniques to get rid of Facebook ads. Both are simple to implement and 100% effective.
The first method is to use a custom script: I use a certain addon that allows you to execute custom scripts on any page. And exactly those scripts will block the rendering of ads on Facebook (and any other website if you are willing to implement a script on your own or look for one). But wait, the whole process involves installing another addon to the browser, so how is it any better than the other method? The reason is simply that you can always look at a script before you choose to execute it, therefore making sure the script is doing exactly what you want to. And secondly, the addons I am going to present have such a big user base that they are well managed and frequently updated, thus you can safely install them. This method works for both the latest versions of Google Chrome and Mozilla Firefox.
The second method is to use a custom Cascading Style Sheet. CSSs declare how a page is rendered inside your browser. Since all the elements on a page, such as ads, are rendered within small containers, you can use CSS to select those containers and simply make them invisible. So the solution lies in specifying some custom CSS rules and make your browser execute those rules. This solution is actually even simpler than the above, and it works in both the latest Apple Safari and Microsoft Internet Explorer (on Windows 7, at least).
FIREFOX
First, update to the latest Firefox (currently it's version 15). This solution will likely work in older versions as well, but it is always good to use the lastest software version because of security and other reasons. Then, install the Greasemonkey addon. As I said, it allows you to run custom scripts to enable or disable certain features of a website. Now you go to userscripts.org, a large community where people share their scripts and review them, and install this one by clicking on the install button in the upper right corner of the page. In the upcoming dialog you have to confirm the trust delegation (no worry, this script is definitely safe), and then install it. Thanks to "Maxcod2" for submitting this script! Now I recommend restarting Firefox and then navigating to Facebook. The ads should be gone by now! Make sure Greasemonkey is running though and the script is shown as "activated". There should be a little icon with a monkey head somewhere on your browser, that's where you can check that stuff.
CHROMEWith Google Chrome, it's about the same procedure as with Firefox, just instead of installing Greasemonkey, you'll install Tampermonkey. After that, do exactly as stated above: Navigate to here, install the script in Tampermonkey (press "ok" to confirm the upcoming dialog after clicking "Install"), and restart the browser. Then navigate to Facebook and be amazed.
SAFARI
Just fire up a text editor such as the default Windows text editor (type in "Editor" after pressing the Start button in the lower left corner of your desktop and press Enter). Now copy and paste the following code in the just opened text file:

#pagelet_side_ads, #pagelet_ego_pane_w, div.ego_unit_container { display: none !important; }
Make sure nothing else is in the file and then save the file as noads.css, for example (be aware that you have to explicitly specify the extension ".css"). Then, go to Preferences > Advanced > Stylesheet and select "Choose..." from the list. A prompt will appear and ask for the location of your custom script. Just specify the script you have just saved and press "Open". That's it!
I am not sure whether restarting the browser is absolutely necessary but you should do it nonetheless. After navigating to Facebook, the ads should be gone.

INTERNET EXPLORER
In Internet Explorer 8 or 9 it is again a very similar procedure. Have the file as described for Safari ready and fire up Internet Explorer. Access the Internet Options and in the General tab (the one that appears first), look for the Accessibility button in the Appearance section. Now, in the section User Style Sheet, press "Browse..." and specify your just saved file (noads.css in my case). As with Safari, it doesn't hurt to restart Internet Explorer. And there you are, no more ads on Facebook!
MOBILE BROWSERS
Currently, there seems to be a lack of solutions for mobile browsers, but this does not really matter since most people make use of the Facebook app anyway, and as far as I know, this app does not display ads to the user. Even the mobile (Smartphone) site of Facebook does currently not feature ads. But this might change in the future and certainly people will come up with solutions.
I hope I could help you get rid of those annoying ads! Try it out and tell me if it worked, or tell me what went wrong and I will try to help you fixing it.

No comments:

Post a Comment