A powerful and lightweight ad blocker browser extension for Chrome and Edge that blocks ads using multiple filter sources.
- ✅ Multi-Source Filtering: Uses EasyList and uBlock Origin filter lists
- 🚀 High Performance: Built with Manifest V3 and declarative net request
- 🎯 Smart Blocking: Combines network-level and DOM-based blocking
- 📊 Statistics: Track blocked ads and protected sites
- ⚙️ Customizable: Whitelist sites, custom rules, and blocking levels
- 🔒 Privacy-Focused: No data collection, all processing happens locally
- Clone this repository
- Open Chrome/Edge and navigate to
chrome://extensions/
- Enable "Developer mode"
- Click "Load unpacked" and select the extension folder
- The extension should now appear in your browser toolbar
Coming soon - extension will be available on the Chrome Web Store and Edge
- Click the Blocky icon in your browser toolbar
- The extension is enabled by default and starts blocking ads immediately
- View blocking statistics in the popup
- Toggle blocking on/off as needed
- Visit a site you want to whitelist
- Click the Blocky icon
- Click "Whitelist Site" to disable blocking for that domain
- Right-click the Blocky icon and select "Options"
- Configure filter lists, blocking levels, and custom rules
- Manage your whitelist and export/import settings
Blocky/
├── manifest.json # Extension configuration
├── background.js # Service worker for background tasks
├── content.js # Content script for DOM manipulation
├── popup.html # Extension popup interface
├── options.html # Settings page
├── scripts/
│ ├── popup.js # Popup functionality
│ └── options.js # Options page functionality
├── styles/
│ ├── popup.css # Popup styling
│ └── options.css # Options page styling
├── rules/
│ ├── easylist_rules.json # EasyList blocking rules
│ └── ublock_rules.json # uBlock Origin rules
├── icons/ # Extension icons
└── README.md
This extension uses Manifest V3, which provides:
- Enhanced security through service workers
- Declarative net request for efficient blocking
- Improved performance and battery life
- EasyList: Primary ad blocking filter list with ~30,000 rules
- uBlock Origin: Additional blocking rules with ~15,000 rules
- Custom Rules: User-defined blocking rules in AdBlock Plus syntax
- Network Blocking: Uses declarativeNetRequest to block requests
- DOM Blocking: Content script removes ad elements from pages
- CSS Blocking: Hides common ad containers with CSS rules
- Chrome or Edge browser
- Basic knowledge of JavaScript and browser extensions
- Make changes to the extension files
- Go to
chrome://extensions/
- Click the refresh icon for the Blocky extension
- Test your changes
- Edit the rule files in the
rules/
directory - Follow the declarativeNetRequest rule format
- Update the rule IDs to avoid conflicts
- Test thoroughly before deployment
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
The extension uses Chrome's declarativeNetRequest format:
{
"id": 1001,
"priority": 1,
"action": { "type": "block" },
"condition": {
"urlFilter": "*://ads.example.com/*",
"resourceTypes": ["script", "image", "xmlhttprequest"]
}
}
Blocky respects your privacy:
- No data is collected or transmitted to external servers
- All blocking happens locally in your browser
- Statistics are stored locally on your device
- No user tracking or analytics
- Filter lists are updated directly from their sources
- Minimal memory footprint (~5MB)
- Fast startup time (<100ms)
- Efficient rule matching
- No impact on browser performance
- Battery-friendly design
- Chrome: Version 88+
- Edge: Version 88+
- Brave: Compatible
- Opera: Compatible with Chrome extensions
- Some dynamic ads may require page refresh to be blocked
- Whitelist changes require tab reload to take effect
- Custom rules syntax is limited to basic AdBlock Plus format
- Support for additional filter lists
- Advanced rule syntax support
- Anti-adblock countermeasures
MIT License - see LICENSE file for details
- Report bugs: GitHub Issues
- Feature requests: GitHub Discussions
- Documentation: Wiki
- EasyList maintainers for the filter lists
- uBlock Origin project for inspiration and filter rules
- Chrome Extension documentation and community
Made with ❤️ and ✨ for a better web browsing experience