P

Multi-Level Web Filter

Website, page and element filtering in Chrome

A Chrome extension that filters ads, trackers, malicious and adult content at three levels, entirely on-device.

Multi-Level Web Filter is a Manifest V3 extension that decides at three levels: is the website bad, is this page bad, and which elements on a good page are bad. It removes ads, trackers, malware, phishing and adult content while keeping layouts, comments, video, logins and pages about sensitive subjects intact. Everything runs locally in the browser, with no server, telemetry or remote code.

What it does

  • Evaluated in real Chromium with Playwright: precision 1.000 and recall 0.813 across public ad-blocker test sites, with zero false positives on any site.
  • An offline ground-truth suite maps real domain names to a local HTTPS server and scores all three levels with known labels; without the extension, recall drops to near zero.
  • 13,826 declarativeNetRequest rules compiled from EasyList, EasyPrivacy and other public lists, kept far below Chrome's 30,000-rule guarantee.
  • A local explicit-text classifier (logistic regression scored in JavaScript) blurs single paragraphs: precision 1.000, recall 0.974 on an unseen source.
  • Flagged 0 of 1,727 encyclopedia paragraphs on sexual health, crime and the adult industry.
  • Tells script popups apart from user-clicked links, so only ad popups are closed.
  • Every Tranco top-10k site the rules would block was reviewed by hand, and false positives moved to an allowlist.

How it works

Level 1 uses host rules to redirect bad websites to a block page and drop requests to ad, tracker, malware and phishing hosts. Level 2 adds URL-pattern rules and in-page signals such as adult labels, adult ad networks and the share of explicit text. Level 3 hides ad elements and media from bad hosts, blurs explicit paragraphs and closes script popups.

Evaluation

Every number comes from a generated test report run in real Chromium with the extension loaded. Suites cover an offline ground-truth set, public ad-blocker test sites, 30 popular real websites and unlisted adult sites. On the 30 popular sites, no page was wrongly blocked and visible ad iframes went from 5 to 0.