Skip to content

Stop ad blockers hiding the Adverts page (1.9.1) - #11

Merged
antoine-debroye merged 1 commit into
mainfrom
ad/advert-suppression-redesign-e1b8a4
Sep 16, 2026
Merged

antoine-debroye merged 1 commit into
mainfrom
ad/advert-suppression-redesign-e1b8a4

Conversation

@antoine-debroye

Copy link
Copy Markdown
Collaborator

The Adverts page in 1.9.0 is blank for anyone running an ad blocker.

Cause. The panel was #ad-panel / .ad-panel and its notes .ad-note. EasyList (default in uBlock Origin and AdGuard) has ###ad-panel, ##.ad-panel and ##.ad-note, so the browser hid a page the server had sent complete.

Fix. Every class and id on the cuts pages is renamed to cuts-* / ep-cuts*. URLs and file names are unchanged.

Guard. test/integration/adblock-names.test.js fails when a name with ad, ads, advert, sponsor or promo as a word appears in a template, app.css, app.js or a rendered page. It fails against v1.9.0.

Tested

  • npm test: 1304 passed, 0 failed.
  • Acceptance on the built image: 57 passed, 0 failed.
  • The generic cosmetic rules of EasyList, uBlock filters and AdGuard Base were checked against every class and id on the Adverts, show, episode and dashboard pages, and none match. With the old rules injected in a browser, no element is hidden on those pages, and a control rule proves the injection works.

🤖 Generated with Claude Code

…ng it (1.9.1)

1.9.0 called the panel `ad-panel` and its notes `ad-note`. EasyList, loaded by
uBlock Origin and AdGuard by default, hides both by name, so the page arrived
whole and the browser blanked it. Rename every class and id on the cuts pages
to `cuts-*` / `ep-cuts*`, and add a test that fails if a name with ad, ads,
advert, sponsor or promo as a word appears in a template, the stylesheet, the
script or a rendered page. The test fails against v1.9.0.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@antoine-debroye
antoine-debroye merged commit 8d30a60 into main Sep 16, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant