shipwithjev

Catalog / Agents & browsers

0247GitHub

TypeSafe AdBlock

Chrome extension that asks Jev whether each DOM element is an ad and removes the ones that are.

realZachi/typesafe-adblockREADME ↗
# TypeSafe Fun AdBlocker 🧹

A Chrome extension (Manifest V3) that spots ads on any website in real time and pops
their DOM elements out of the page. The semantic call, "is this element an ad?", is made
by [TypeSafe AI](https://docs.typesafe.ai)'s System One model **Jev**. Everything else
is plain code.

> **This is a fun side project, not a real ad blocker.** It costs API tokens per page,
> it will miss ads, it will occasionally eat something that is not an ad, and it does
> nothing about tracking, malware, or video ads. If you want a real ad blocker, use uBlock
> Origin. If you want to see a tiny decision model judge DOM elements, read on.

**BYOK: bring your own key.** There is no backend. You paste your own TypeSafe API key
into the popup; it is stored in `chrome.storage.sync` in your browser and sent only to
`https://api.typesafe.ai`. You pay for your own usage.

## How it works

1. **Find candidates (code)** – `src/content.js` looks for ad-shaped elements:
   `iframe` / `ins`, id and class tokens like `ad`, `sponsored`, `banner`, `data-ad-*`
   attributes, links to ad networks, and short labels such as "Sponsored", "Advertisement",
   "Anzeige", "Werbung". Tight wrappers are collapsed into one candidate. Anything too
   big (half the viewport, contains `main` or `h1`) is skipped. Teaser cards are climbed
   from the label up to the whole card (`article` / `li`), stopping at page-level
   containers, at 35 % of the viewport, at 1500 characters of text, or when the parent
   holds a second label (then it is a feed, not a card).
2. **Describe compactly (code)** – each candidate becomes a small JSON object: tag,
   classes, label, text excerpt, link hosts, iframe host, shape ("wide horizontal
   banner"), whether it has a standard IAB size, and any recognized ad netwo

Also filed under Agents & browsers

  1. 0226

    Flight search with Browser Use★

    Breaking: Browser Use + Jev = Ultrafast ⚡ Findings flights took 7s and cost only $0.0039 🤯 > new action space every step > DOM state space > small LLM fallback to type (this video is at 1x speed btw) Built a tiny open source browser agent. try it below ↓

    @gregpr07 · Agents & browsers · ~$0.004 · ~7 s

  2. 0619

    jevmem: automatic project memory for Claude Code

    After every Claude Code message, Jev decides in ~0.3 s whether it holds a decision, rule or bug worth keeping, and jevmem saves it as one line in JEVMEM.md.

    @jetwaniavinash · Agents & browsers · ~0.3 s

  3. 0618

    Playwright + Jev: tests in plain language

    Write Playwright steps like "add the most expensive item to the cart". Jev finds the right buttons and fields, fills forms and checks the result.

    Andrey Popov · Agents & browsers

  4. 0617

    toolgate: a tool-call firewall for agents

    A Claude Code and MCP hook where Jev answers seven yes/no risk questions per tool call to allow, ask or deny. Usage and benchmark numbers are in the repo.

    Jaz · Agents & browsers