CleanSurf it is a web extension that allows for seamless filtering of explicit content to prevent such interactions and create a better overall browsing experience. The extension has a control panel where users can toggle the filter on and off, select how strict they want the filter to be, choose what type of content they want to filter, and customize the filter.
git clone https://github.com/CS222-UIUC/course-project-group-1.git
Make sure you have Python 3.9 or higher installed to run the Flask API. Then, install the dependencies using the following command:
pip install -r ./api/requirements.txt
Make sure you have a chromium based browser installed.
Models are located under the 'models' directory. To install the models, run the following command:
python ./api/models/model_installer.py
python api/api.py
Note that the server is using port 5000 by default. If you want to change the port, you can do so by editing the api/api.py
file.
- On your browser, go to
chrome://extensions/
- Enable developer mode by toggling the switch in the top right corner (left panel if you are using Edge)
- Click on the
Load unpacked
button - Navigate to the
extension
directory and select it - Make sure the extension is enabled
- Navigate to any website
- Click on the extension icon
- Toggle the filter on by pressing the
CLEAN
button