They Live (1988) inspired Adblocker

· devtools open-source · Source ↗

TLDR

  • uBlock Origin Lite fork that replaces cosmetically-filtered ads with white tiles showing They Live slogans (OBEY, CONSUME, SUBMIT, etc.) via DOM patching and MutationObserver.

Key Takeaways

  • Fork patches uBO Lite’s CSS injection points in css-specific, css-generic, and css-procedural-api.js to render white-box overlays instead of display:none.
  • A new they-live.js script holds the phrase list, CSS generator, and DOM tagging logic; a MutationObserver handles late-loaded ads.
  • Only cosmetic-filtered ads get replaced; network-blocked ads (uBO Lite’s default Basic mode) produce no DOM element and are unaffected – Optimal or Complete mode required.
  • Install is unpacked Chromium extension from a zip release; Node 22 required to build from source via tools/make-mv3.sh.
  • Caveats: forcing hidden elements visible can shift page layout; custom user cosmetic filters still hide normally; GPL-3.0.

Hacker News Comment Review

  • No substantive HN discussion yet.

Original | Discuss on HN