A Google Chrome/Firefox extension that blocks NSFW images from the web pages that you load using TensorFlowJS.
This extension does NOT collect/send any user data. All the operations on the images are done locally on the browser. No user data is being sent to a server for processing.
When a web page is loaded, all the images remain hidden until they are found to be NSFW or not. If they are found to be NSFW, they remain hidden. Otherwise, they become visible.
It is free and is currently supported on both Chrome and Firefox. We are working on porting this to Safari also.
Download for Chrome | Download for Firefox
Read about the release in Hacker Noon or in Towards Data Science.
Model used - nsfwjs developed by Infinite Red, Inc.
Reach out to us! Join the Slack channel.
After adding the extension to Chrome/Firefox, it will light-up everytime you load a compatable website.
When a page is loaded, the extension would hide all the images in the page and only show images that have been classified as NOT NSFW.
You can toggle(off/on) the extension from the chrome://extensions
page in Chrome and about:debugging#/runtime/this-firefox
in Firefox.
Open popup window to change NSFW Filter settings
![]() |
![]() |
Clone this repository and navigate inside the project folder and install the dependencies by running:
npm ci
After installing the dependencies, build the project by executing:
npm run build
Run the tests
npm run test
To install the developer version follow the steps below. To just use the extension download from chrome.google.com/webstore/nsfw-filter
To run development version in clean environment use command:
npm run dev:chrome
Or open Google Chrome and open the Extension Management page by navigating to chrome://extensions
or by opening Settings and clicking Extensions from the bottom left.
Enable Developer Mode by clicking the toggle switch next to Developer mode.
Click the "Load Unpacked" button and select the extension directory(.../dist
).
Voila! The extension is now installed and ready to be used!
To install the developer version follow the steps below. To just use the extension download from addons.mozilla/nsfw-filter
To run development version in clean environment use command:
npm run dev:firefox
Or open Firefox and open the Debug Add-ons page by navigating to about:debugging#/runtime/this-firefox
or by selecting it from Settings dropdown in the add-ons page.
Click Load Temporary Add-on and select the manifest.json
file from the .../dist
directory.
That's it! The extension is now ready to be used in Firefox!
Please check the Contributing Guidelines before contributing.
You can also sponsor on Open Collective or become a Patron.
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!