How to add custom filters to Chrome ad-blocking extension µBlock - gHacks Tech News

How to add custom filters to Chrome ad-blocking extension µBlock

I have reviewed the Chrome extension µBlock a couple of months ago here on Ghacks and liked it a lot as it offered the same level of advertisement and nuisance blocking that other extensions offered but with a smaller footprint.

Even though it is lighter than other extensions of its kind for Chrome, it is quite powerful.

You will notice that when you open the options with a right-click on the extension icon and the selection of options from the context menu.

Here you find a few dozen pre-configured lists of which some are already in use while others are not. The lists are sorted thematically into categories such as ads, privacy, social or regions.

At least one list is already selected for each category with the exception of regions and multi-purpose. This means that µBlock blocks a lot out of the box already.

While you can experiment with the lists that it makes available, for instance by adding new lists or removing some that you have no need for, you can also add custom filters to the extension.

ublock

There are three types of custom filters that the extension supports:

  • Custom filter lists from remote urls.
  • Custom filters that you add to the extension.
  • Whitelist filters to disable the extension on the selected host names.

It is actually very easy to add a new filter list that is available publicly on the Internet. To do so simply add the full path to it to the "custom"  text field under 3rd-party filters.

To add the anti-ad-block filter list for example  simply add https://easylist-downloads.adblockplus.org/antiadblockfilters.txt as a new line in the field. Once you hit apply, you will notice that the new list is listed under custom so that you can select or deselect it easily from there.

You find filter lists on third party sites such as Fanboy's website, Easylist on the Adblock site or the GamerGate filter list on GitHub.

The second option that you have in regards to custom filters is to add your own. Switch to the "your filters" tab in the options. There you can add one filter per line manually, or use the import and append button to import information from a text file and append those information to the current custom filter list of the extension.

It is alternatively possible to copy filters to the clipboard and paste them into the field on the page directly.

Are you using an adblocker? If so which one and why?

Summary
How to add custom filters to Chrome ad-blocking extension µBlock
Article Name
How to add custom filters to Chrome ad-blocking extension µBlock
Description
Find out how to manage filters and filter lists in the Chrome ad-blocking extension µBlock. µBlock is a light adblock alternative for Chrome.
Author

We need your help

Advertising revenue is falling fast across the Internet, and independently-run sites like Ghacks are hit hardest by it. The advertising model in its current form is coming to an end, and we have to find other ways to continue operating this site.

We are committed to keeping our content free and independent, which means no paywalls, no sponsored posts, no annoying ad formats or subscription fees.

If you like our content, and would like to help, please consider making a contribution:

Comments

There are no comments on this post yet, be the first one to share your thoughts!

Leave a Reply

Check the box to consent to your data being stored in line with the guidelines set out in our privacy policy

Please note that your comment may not appear immediately after you post it.