Home

Awesome

Kenomo Ad Blocker

2017-04-24 11 18 46

This extension is a perceptual ad blocker which replace advertisements with Kenomo Friends pictures on Facebook and Adchoices advertisements across the web.

All Kenomo Friends pictures are from offical Twitter.

For Facebook ad detection, it finds newsfeed items by looking for containers within the given width constraints and border on the side; it looks for the sidebar ads by searching for containers with the proper size constraints in a sidebar. It then determines which newsfeed items are ads by searching for the "Sponsored" link within them and checking whether this link ultimately goes to the Facebook "about ads" page.

For Adchoices detection, it runs a content script in every iframe which searches all of the images, (those explicit in an img element, those in the background-image css, and those drawn as an svg) and then uses fuzzy hashing to compare them to example Adchoices icons. If any of the images match, it highlights the iframe as an advertisement.

Code Overview

Running This Extension

To get this running from the source code on your local machine (Chrome only):

Old ver. screenshot

2017-04-19 12 06 03

License:

MIT