Skip to content

Team-Jalapeno/detox-chrome-extension

Repository files navigation

Logo

detox-chrome-extension

Keep your browsing free from inappropriate content.
Explore the docs »

View Demo · Report Bug · Request Feature

Table of Contents

About The Project

Detox is an AI-powered chrome-extension that lets you control what you see when you are browsing the web. With the help of Detox, you can choose to blur out obscene images, videos, and text, and concentrate on your work/scroll through social media peacefully.

Learn more about Detox on our website!

On the chrome-extension popup, you can choose the strictness with which you want Detox to filter text and media on the webpage. You can also choose the type of content you want to filter by enabling/disabling switches on the extension. By default, text, images, and videos will be enabled.

Detox is made by the community, for the community. With the help of community flagging, any user can flag specific content that they believe is inappropriate. Content that is flagged by a considerable portion of the community will be filtered for users of the extension.

Detox only uses Open-Source APIs and libraries. Image content detection is performed on the client-side. Text is sent to the server (the source code for which is also Open Source). However, the text sent to our servers is not stored and not linked to a user in any way.

Built With

Getting Started

To get a local copy up and running follow these simple steps.

Prerequisites

  • npm
  • Google Chrome

Installation

  1. Clone the repo.
git clone https://github.com/Team-Jalapeno/detox-chrome-extension.git
cd detox-chrome-extension
  1. Install NPM packages.
npm install
  1. Build the extension. This will create a dist folder.
npm run build
  1. Head to chrome://extensions and turn on Developer mode on the top right corner.
  2. Click on Load unpacked, and select the dist folder that was created in the build step.
  3. The extension should now be available on the extension bar on chrome.

Usage

Once the extension is installed, you can visit any website and any "toxic" content on the webpage should be blurred out. You can choose to turn off the filtering by toggling the switches on the extension.

When filtering images, the extension will initially blur out all images, and then unblur them only if the algorithm decides that the content is SFW. We do this to decrease the chances of a user seeing a "toxic" or "NSFW" image, by blurring everything instantly, and unblurring them based on the results obtained with the ML model.

The model used has an accuracy of ~90%.

The slider on the extension sets the strictness, i.e., the threshold value for the prediction. There are 4 levels on the slider.

  • off - Media and text will not be filtered.
  • low - Media and text will be filtered only if the content is extremely sensitive.
  • moderate - Media and text will be filtered if the content is moderately sensitive.
  • high - Media and text will be filtered even if the content is slightly sensitive.

To stop the extension, move the slider to the extreme left, or toggle all the switches to the "off" state.


The screenshots above shows the extension in action.

To test the extension, you can visit our Instagram Post. As of 27 July 2021, the "text filtering" feature of the extension works only on Instagram posts and comments. However, the "image filtering" feature works for on all websites.

Note: The automated text filtering feature is supported only on Instagram posts, but it will soon be available on popular social media websites such as Facebook, Reddit, Discord, etc.

Community Flagging

Detox also supports community flagging. If users find something that's offensive or inappropriate on any website (including text or images), they may report it. Now, if anyone else with the extension were to open the same page, the content that had been flagged will be blurred for them too!

With the help of this feature, the community can flag inappropriate content that the AI was unable to recognize.

To flag content, the user can right-click on a page, and click the "Report to Detox" option in the Chrome right-click menu. Then, the user will be able to see boxes around the items that they're hovering over, so they can click on what they want to flag. That's it! Once the flag request is received by our servers, an alert will be displayed.

Roadmap

See the open issues for a list of proposed features (and known issues).

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'feat: Add some AmazingFeature')
  4. Push to the Branch (git push -u origin feature/AmazingFeature)
  5. Open a Pull Request

You are requested to follow the contribution guidelines specified in CONTRIBUTING.md while contributing to the project 😄.

License

Distributed under the MIT License. See LICENSE for more information.

About

Keep your browsing free from inappropriate content.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •