NSFW Filter- Block NSFW content from your browser using AI

栏目: IT技术 · 发布时间: 4年前

NSFW Filter- Block NSFW content from your browser using AI

NSFW Filter

NSFW Filter- Block NSFW content from your browser using AI

A Web extension that filters out NSFW images from websites.

It uses TensorFlow JS- a Machine Learning framework- to check for NSFW images when a web page is loaded.

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.

The extension runs completely on your browser. i.e No user data is being sent to a server for processing.

Model used- nsfwjs devoleped by Infinite Red, Inc.

NSFW Filter- Block NSFW content from your browser using AI NSFW Filter- Block NSFW content from your browser using AI NSFW Filter- Block NSFW content from your browser using AI

Download NSFW Filter | Download for Firefox | Coming soon on Chrome Web Store!

Supported browsers:,.

Reach out to us! Join the Slack channel .

What's new?

v1.0.0released!

The images are now hidden when a page loads and become visible only when they are found to be not NSFW. The NSFW images remain hidden.

Performance improvements.

Bug fixes.

Demo

The website used in this demo is scroller/nsfw , which randomly loads NSFW images.

When the extension is installed, the images in the page is hidden.

You can try loading the same website with and without the extension to see it work. (The page may contain images that are innapropriate for some users)

Check DEMO.md for more.

NSFW Filter- Block NSFW content from your browser using AI

Table of contents

Installation

These instructions are for developers(and Chrome users - since NSFW Filter is not available in the Chrome Webstore yet!).

You can download for use directly from addons.mozilla/nsfw-filter .

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

Adding to Chrome

After you have finished the, 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 ).

NSFW Filter- Block NSFW content from your browser using AI

Voila! The extension is now installed and ready to be used!

Adding to Firefox

To install the developer version follow the steps below. To just use the extension download from addons.mozilla/nsfw-filter

After finishing, 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.

NSFW Filter- Block NSFW content from your browser using AI

That's it! The extension is now ready to be used in Firefox!

Usage

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 check for images as you scroll across the page and runs the images through the algorithm and if NSFW images are found, it is hidden automatically.

You can toggle(off/on) the extension from the chrome://extensions page in Chrome and about:debugging#/runtime/this-firefox in Firefox.

Development

Check the wiki for detailed info.

By default the code runs in production mode. This can be disabled during development by commenting out tf.enableProdMode () in the /src/background.js file. This is enabled by default to improve the performance.

Dependencies

"@tensorflow/tfjs": "^2.0.1",
"nsfwjs": "^2.2.0"

devDependencies

"parcel-bundler": "^1.12.4"

Run npm i to install the dependencies.

Project tree

├── CODE_OF_CONDUCT.md
├── CONTRIBUTING.md
├── demo
│   └── images
│       ├── banner.png
│       ├── demo.gif
│       ├── demo_new.gif
│       ├── download.png
│       ├── icon32.png
│       ├── install_instructions_firefox.png
│       ├── install_instructions.png
│       ├── logo.png
│       └── preview.png
├── DEMO.md
├── dist
│   ├── images
│   │   ├── icon128.png
│   │   ├── icon16.png
│   │   ├── icon32.png
│   │   ├── icon48.png
│   │   └── icon.png
│   ├── manifest.json
│   └── models
│       ├── group1-shard1of1
│       └── model.json
├── docs
│   └── README.md
├── ISSUE_TEMPLATE.md
├── LICENSE
├── package.json
├── package-lock.json
├── PULL_REQ_TEMPLATE.md
├── README.md
└── src
    ├── background.js
    └── content.js

Guidelines

Edit the background.js and content.js files in the /src folder in the root directory and NOT the one in /dist/src .

The contents of /dist/src folder is automatically created when you run npm run-script build and should NOT be tampered.

The model use for this project nsfwjs is stored in dist/models . This can be changed to use your own models built using TensorFlow JS. You can read the docs from TensorFlow to learn more.

While making changes or adding new files, make sure to add it in the /dist folder and add it to /dist/manifest.json file.

Contribute

Contributors :sparkles:

Thanks goes to these wonderful people ( emoji key ):

NSFW Filter- Block NSFW content from your browser using AI Yegor <3
:computer:
NSFW Filter- Block NSFW content from your browser using AI Navendu Pottekkat
:computer: :book:
NSFW Filter- Block NSFW content from your browser using AI anonacc
:bug:
NSFW Filter- Block NSFW content from your browser using AI Abhiram V V
:computer: :bug:
NSFW Filter- Block NSFW content from your browser using AI yxlin118
:bug:

This project follows the all-contributors specification. Contributions of any kind welcome!

Sponsor

This is a completely Open Source project and it is free for use. A contribution from you would go a long way to lift my spirits up and push me to build more cool stuff in the future.

You can click this link for sponsoring.

Adding new features or fixing bugs

Check outfor setting up your development environment.

Submit a pull request , wait for review . I will check(usually) every-other-day.

Refer the issue template and pull request template before submitting.

Please follow the Code of Conduct .

Contributions of any kind are welcome! Reach out to us through this Slack channel .

License

GNU General Public License version 3

Privacy

This extension does NOT collect and send any user data. All the operations on the images are done locally on the browser.


以上所述就是小编给大家介绍的《NSFW Filter- Block NSFW content from your browser using AI》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

超简单!一学就懂的互联网金融

超简单!一学就懂的互联网金融

视觉图文 / 人民邮电出版社 / 2015-2-1 / 45.00元

零基础、全图解,通过130多个精辟的知识点、220多张通俗易懂的逻辑图表,让您一书在手,即可彻底看懂、玩转互联网金融从菜鸟成为达人,从新手成为互联网金融高手! 本书主要特色:最简洁的版式+最直观的图解+最实用的内容。 本书细节特色:10章专题内容详解+80多个特别提醒奉献+130多个知识点讲解+220多张图片全程图解,深度剖析互联网金融的精华之处,帮助读者在最短的时间内掌握互联网金融知......一起来看看 《超简单!一学就懂的互联网金融》 这本书的介绍吧!

JSON 在线解析
JSON 在线解析

在线 JSON 格式化工具

在线进制转换器
在线进制转换器

各进制数互转换器

HTML 编码/解码
HTML 编码/解码

HTML 编码/解码