LintRoll
A lightweight browser extension that removes webpage ads and blocks common ad network requests with customizable site controls.
Features
LintRoll is a lightweight browser extension designed to make web browsing cleaner by detecting and removing unwanted advertisements.
Like a lint roller removes unwanted particles from fabric, LintRoll helps clean up distracting elements from webpages.
It combines DOM-based ad detection with network-level blocking to reduce unwanted advertisements without relying on a single filtering method.
Built for a cleaner browsing experience
Advertisements are everywhere on the web.
Some websites display banners, floating overlays, embedded ad containers, and dynamically injected advertising elements that can make browsing frustrating.
LintRoll takes a practical approach to this problem by combining two independent filtering layers:
- Cosmetic filtering: Detects and hides or removes advertising elements directly from webpage content.
- Network filtering: Blocks requests to common advertising networks using browser-native declarative network request rules.
By combining these approaches, LintRoll can handle different types of advertising elements while keeping its filtering logic manageable and extensible.
Core features
Automatic ad detection
Detects common advertising elements using DOM attributes, class names, element IDs, iframe sources, and fixed-position overlay patterns.
DOM-based ad removal
Removes or hides unwanted advertising elements directly from webpages.
You can choose between hiding elements and removing them from the DOM.
Network-level ad blocking
Uses Chrome’s Declarative Net Request API to block requests to configured advertising networks and bidding services.
This provides an additional filtering layer beyond visual element detection.
Dynamic content monitoring
Uses MutationObserver to detect advertisements injected after a webpage has loaded.
This is particularly useful for modern single-page applications (SPAs) where page content changes dynamically.
Custom website management
Choose which websites LintRoll should operate on.
The managed-site feature supports domain-based matching, including subdomains. For example, adding example.com also covers its subdomains.
Per-site filtering rules
Supports website-specific rules for pages with stable advertising element identifiers.
These rules take priority over generic detection heuristics when applicable.
Ad-block detection protection
Some websites inject special probe elements to determine whether an ad blocker is active.
LintRoll includes protection for known detection patterns, helping avoid accidentally hiding detection elements and triggering anti-ad-block overlays.
Blocking statistics
View per-site blocking statistics and monitor activity through the extension’s toolbar badge.
Flexible website controls
Not every website needs the same filtering behavior.
LintRoll provides website management options so you can decide where and how filtering should work.
Key controls include:
- Global enable and disable switch.
- Optional managed-sites-only mode.
- Per-site management through the extension popup.
- Website allowlist.
- Domain and subdomain matching.
- Hide or remove mode.
By default, filtering is limited to websites added to the managed-sites list.
You can disable this restriction in the settings to enable filtering across the web.
This gives you more control over your browsing experience instead of applying the same rules everywhere.
How it works
LintRoll uses two independent mechanisms to handle advertisements.
1. Cosmetic filtering
The content script scans webpage elements and identifies potential advertisements using generic selectors and website-specific rules.
When an advertising element is detected, LintRoll can hide or remove it.
It also monitors DOM changes to handle dynamically injected content.
2. Network filtering
LintRoll uses the browser’s declarativeNetRequest API to register dynamic blocking rules.
These rules help prevent requests to configured advertising networks and related services.
The two mechanisms complement each other:
| Filtering layer | Responsibility |
|---|---|
| DOM filtering | Detect and remove visible ad elements |
| Network filtering | Block matching advertising requests |
This combination provides a more flexible approach than relying exclusively on DOM manipulation or network filtering.
Privacy and control
LintRoll is designed to work locally as a browser extension.
Its filtering logic runs within the browser using content scripts and browser-native APIs.
There is no need to upload webpage content to an external image-processing or filtering service.
You also have control over which websites the extension operates on through its managed-sites settings.
The goal is to provide a cleaner browsing experience while keeping filtering behavior under your control.
Technology stack
LintRoll is built with modern browser extension technologies:
- Manifest V3
- WXT
- React 19
- TypeScript
- Vite 8
- Tailwind CSS v4
It uses browser-native APIs such as declarativeNetRequest and MutationObserver to implement its filtering functionality.
Open source
LintRoll is developed independently, and its source code is available on GitHub.
The project is released under the GNU Affero General Public License v3.0 or later (AGPL-3.0-or-later).
You can explore the implementation, review the filtering rules, or extend the project with additional website-specific detection logic.
Built for a cleaner web
LintRoll is one of my independent developer projects focused on building practical browser tools.
The idea is simple:
Make everyday browsing a little cleaner, with lightweight tools that give users more control over their web experience.