Back
browsermoderationOpen source

TypeSafe Adblock

Ask Jev whether suspicious DOM candidates are ads, then remove or highlight the confident matches.

What Jev decides

Whether one candidate DOM element is an advertisement.

A Chrome extension uses lightweight DOM heuristics to find candidates, serializes compact element context, and makes one Noul decision per candidate before applying a local probability threshold.

NOUL
Jev role
Classify suspicious DOM containers after deterministic candidate filtering.
Input
Compact JSON containing candidate text, links, images, ARIA data, dimensions, and nearby DOM signals.
Output
A Noul probability that the element is an ad.
Decision frequency
Once per candidate during a page scan.
Fallback
Local heuristics create the candidate set and a local threshold decides whether to remove or highlight it.
Author reported · Source reviewed

How it works

Input
Compact JSON containing candidate text, links, images, ARIA data, dimensions, and nearby DOM signals.
Jev
NOUL
Output
A Noul probability that the element is an ad.

Overview

TypeSafe Adblock explores semantic ad detection in a browser extension. Cheap rules first narrow the page to likely ad containers; Jev then receives compact JSON about each candidate and answers whether it is an advertisement. The extension can remove matches or run in a visual debug mode.

The README explicitly calls it a fun side project, not a real ad blocker. It can remove legitimate content, miss ads, and does not block trackers, malware, pop-ups, or video ads. Candidate page content is sent to the TypeSafe API for classification.

Language
JavaScript
License
MIT
Author
realZachi
Sources checked Sep 21, 2026

Sources

Related projects