Pronounced "safespace"
A HSLU HackSTAIR project in the middle of October 2023.
Protecting Twitter users from polarizing, overly negative, or hurtful content through sentiment analysis.
- Compatible Browser: Google Chrome or Microsoft Edge
- Twitter account
recommended, only inside HSLU network
- Install the Browser Extension
- Open Twitter in your browser & login.
- enjoy using Twitter with safe_
designed for local testing
- Install python 3.11
- Clone this repository
- Open the
api_project
subfolder in a command line - run
pip install -r requirements.txt
to install dependencies - Place .env file provided by the team in api_project folder
- run
python -m uvicorn main:app --host 0.0.0.0 --port 8000 --env-file .env
- Make sure to allow TCP Port 8000 in your local firewall
- Navigate to
<Repo>/client/addon/content_scripts
and change line 6 oftwitter.js
toconst SAFE__API_HOST = SAFE__API_HOST_LOCAL
- Install the Browser Extension
- Open Twitter in your browser & login.
- enjoy using Twitter with safe_
- Clone this repository (if not done already)
- Configure your browser to allow insecure content for
twitter.com
See detailed Instructions for Google Chrome and Microsoft Edge - Manage Extensions - turn on developer mode
- Manage Extensions - "Load unpacked" and browse to
<Repo>/client/addon
(In case the extension is already loaded, remove it first)
- Open Google Chrome Settings
- Search for "insecure"
- Go to "Site Settings"
- Scroll down to "Additional content settings"
- Open "Insecure content" and add
twitter.com
to "Allowed to show insecure content"
- Open Microsoft Edge Settings
- Search for insecure (unsicher)
- Scroll down to "Insecure content" (unsicherer Inhalt)
- Open "Insecure content" and add
twitter.com
under "Allow"
- Robin Matter
- Said Aroua
- Nicola Le
- Joël Ammann