ad-blocker/
├── manifest.json ← Extension config
├── rules.json ← 20 ad network block rules
├── background.js ← Service worker (counts blocks, injects CSS hider)
├── popup.html ← Extension popup UI
├── popup.js ← Popup logic
└── icons/
└── icon128.png ← Extension icon
- Open Chrome and go to:
chrome://extensions - Enable Developer Mode (toggle in top-right corner)
- Click Load unpacked
- Select this
ad-blocker/folder - The extension appears in your toolbar — click the shield icon
Visit any site with ads (e.g. a news site) and open the popup. You should see the blocked count increasing.
- Google (DoubleClick, AdSense, AdService)
- Amazon Ads
- Facebook Pixel
- AppNexus (adnxs)
- Outbrain, Taboola
- Criteo, Moat, Rubicon, PubMatic, OpenX
- Yahoo Ads, Media.net, Quantserve
- Scorecard Research, Advertising.com, YieldMo
Edit rules.json and add entries following this pattern:
{
"id": 21,
"priority": 1,
"action": { "type": "block" },
"condition": {
"urlFilter": "||adnetwork.com^",
"resourceTypes": ["script", "image", "xmlhttprequest", "sub_frame"]
}
}Each rule needs a unique id.
- Load EasyList filter lists (50,000+ rules) for broader coverage
- Add per-site whitelist support
- Add cosmetic filtering for ad placeholder elements