Get rid of ads in Google Chrome and Opera

Posted: January 29, 2009 in science & technology
Tags: ,


Enjoy an ad-free web browsing with AdSweep


AdSweep is a small addon that aims to hide advertising from the web pages you visit like Adblock. In technical terms, AdSweep is a user javascript that defines CSS rules based on the web site you are visiting to hide elements of the page that show advertisements.

AdSweep is mainly designed for the Opera web browser, but works also with Google Chrome. It is a work in progress, more and more web sites are added over time, and if you have basic CSS skills, you can take part and help make the web a cleaner place. To help me out, you can get in touch with me by email.

Download AdSweep v.0.4

AdSweep currently supports a few web sites fully, it hides many advertisement patterns but can still leave ads here and there. You can download it and use it.


To install AdSweep extract and place the AdSweep.user.js file in a directory of your choice.

  • If you use Opera, open your web browser, hit Alt-P, click the “Advanced” tab on top, click the “Content” menu item on the left-hand side, click the “Javascript Options…” button on the right-hand side. In the “Javascript Options” dialog, click the “Choose” button, select the directory where you saved the AdSweep.jsfile. Click “OK” to save.
  • If you use Chrome, create the C:\scripts directory, extract, place the AdSweep.js file intoC:\scripts , rename the file to AdSweep.user.js (important!). Then right-click the shortcut icon of Google Chrome, either on your desktop or in your Start menu, and click “Properties”. Select the second tab named “Shortcut”, and in the “Target” field, append --enable-greasemonkey with a space inbetween. For instance:
    Before: C:\Users\Charles\AppData\Local\Google\Chrome\Application\chrome.exe
    After: C:\Users\Charles\AppData\Local\Google\Chrome\Application\chrome.exe --enable-greasemonkey
    Don’t forget the space inbetween, and the command flag --enable-greasemonkey has to be outside the double quotes, if any. Click “OK” to save changes. If you use the developer version of Chrome (Chrome 2.0), the steps to enable user scripts is different. In this case you’ll have to put the AdSweep.user.js file into a different directory, and the command flag to activate user scripts is different, as explained on theChromium web site.
  • If you use Mozilla Firefox, install the Greasemonkey extension, restart your browser. Then, rename AdSweep.js to AdSweep.user.js and drag and drop it into Mozilla Firefox. The Greasemonkey dialog will ask you if you want to install AdSweep. Click ok. You’re done.
  • If you use Safari, you can use AdSweep, you just have to install Greasekit and install AdSweep as a user script.
  • If you use Internet Explorer you need GreasemonkIE or IEPro and just install AdSweep as a user script (not tested, though).

When you’re done, close your browser, reopen it and access, you should see a red notification in the upper-right corner of the page (only displayed on, saying AdSweep is installed. 


[Thanks to harry and Lifehacker]

  1. Greg says:

    The setup instructions have changed on Chrome now.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s