A lightweight userscript that blocks adult websites and removes adult-content links while you browse.
- Blocks common porn websites
- Detects adult URLs and redirects them
- Removes suspicious adult links from normal websites
- Detects common NSFW keywords
- Runs automatically when a page loads
- Lightweight with no external dependencies
- Fully local with no data collection
Install the Tampermonkey browser extension for your browser.
- Open Tampermonkey
- Create a new userscript
- Delete the default template
- Paste the contents of
blocky.user.js - Save the script
- Make sure the script is enabled
The script checks the current hostname and URL when a page begins loading. If a blocked domain or adult-content pattern is detected, the browser is redirected away from the page.
The script also monitors dynamically added links and removes links that appear to lead toward blocked content.
See latest.md for a plain description of what changed in the most recent version.
This script cannot guarantee that every adult website will be blocked.
Tampermonkey operates inside the browser and has limitations against:
- New or unknown domains
- Unusual URLs
- Content hosted on generic platforms
- Embedded content from other domains
- Websites opened before the userscript executes
- Disabling or modifying the userscript
For stronger protection, combine this script with DNS filtering or browser-level blocking.
BlockyNSFW does not:
- Collect browsing history
- Send data to a server
- Use analytics
- Track users
- Require an account
- Require an external API
Everything happens locally in your browser. Use, modify, and distribute it freely.
BlockyNSFW is intended to make accessing unwanted adult content more difficult and help users maintain better control over their browsing habits.