Tiny Firefox Extension that blocks Twitter/X links
- JavaScript 81.2%
- CSS 18.8%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| icons | ||
| tests/unit | ||
| .gitignore | ||
| .web-ext-ignore | ||
| content.js | ||
| LICENSE | ||
| manifest.json | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| renovate.json | ||
| style.css | ||
Twitter Hellhole Extension
This is a Firefox extension that replaces all links and embeds pointing to Twitter (twitter.com) or X (x.com) with a "HELL HOLE AVOIDED" placeholder.
Installation
- Open Firefox.
- Type
about:debuggingin the address bar and press Enter. - Click on "This Firefox" in the sidebar.
- Click "Load Temporary Add-on...".
- Navigate to this directory (
/home/cdamian/projects/hellhole) and select themanifest.jsonfile.
Features
- Link Replacement: Scans pages for
<a>tags linking totwitter.comorx.com. - Embed Replacement: Replaces
<iframe>and<blockquote>embeds used by Twitter. - Dynamic Detection: Uses a
MutationObserverto detect and replace links/embeds in dynamically loaded content (e.g., infinite scroll). - Hell Hole Theme: Replaces content with a fiery, dark-themed placeholder.
Files
manifest.json: Extension configuration.content.js: Main logic for finding and replacing elements.style.css: Styling for the placeholder.icons/icon.svg: Extension icon.