This Firefox extension automatically filters and hides sensitive content from web pages, including violent/abusive language, political references, and mentions of specific public figures. It works in real-time and continuously monitors page changes.
- Filters violent and abusive terminology
- Hides political content and references
- Removes mentions of specific public figures
- Works dynamically on page updates
- Preserves page structure while hiding sensitive content
- Handles common misspellings and variations
- Supports Unicode and special characters
- Download or clone this repository
- Open Firefox and navigate to
about:debugging
- Click "This Firefox"
- Click "Load Temporary Add-on"
- Navigate to the extension directory and select
manifest.json
- Package the extension by zipping the contents
- Submit to Firefox Add-ons for review
- Once approved, users can install directly from Firefox Add-ons website
firefox-content-filter/
├── manifest.json
├── content-script.js
├── popup.html
├── popup.js
└── words.js
To modify the filter list, edit the wordsToHide
array in content.js
. Each entry can be:
- Simple word:
'example'
- Phrase:
'example phrase'
- Handle:
'@handle'
- Special character variations:
'example\u2019s'
- Uses MutationObserver for dynamic content monitoring
- Implements regex-based pattern matching
- Preserves DOM structure while hiding content
- Handles edge cases like contentEditable elements
- Processes text nodes individually to maintain page stability
The extension uses vanilla JavaScript and requires no build process. To modify:
- Edit the source files
- Load the extension in Firefox using the temporary installation method
- Make changes and reload the extension to test
Feel free to submit issues and enhancement requests through GitHub's issue tracker.