A google chrome extension that blocks a user's phobias and/or triggers by blurring out any images of them present on the current web page.
- Obtain
secret.json
- Place
secret.json
in the backend folder - Open your terminal
- cd to the backend/parser_api folder
export GOOGLE_APPLICATION_CREDENTIALS="../secret.json"
- Run
node app.js
- On your terminal, it should print "Example app listening on port 3000!"
- needToBlur
POST 'localhost:3000/parse'
Body:
Key | Description |
---|---|
src | image source |
triggers | list of triggers specified by users |
Response: a boolean true if image contains a trigger, otherwise false
Example
curl --location --request POST 'localhost:3000/parse' \
--header 'Content-Type: application/json' \
--data-raw '{
"src": "./dog.jpg",
"triggers": [
"dog"
]
}'
- Follow the "How to run the backend" guide
- Clone this repo
- Go to chrome://extensions
- Choose "Load Unpacked"
- Upload this folder
- The extension is ready to run!