https://github.com/trikolon/evil-traps
Evil Traps for Firefox
https://github.com/trikolon/evil-traps
firefox
Last synced: 10 months ago
JSON representation
Evil Traps for Firefox
- Host: GitHub
- URL: https://github.com/trikolon/evil-traps
- Owner: Trikolon
- License: mit
- Created: 2019-04-10T11:25:44.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2024-12-06T02:43:06.000Z (over 1 year ago)
- Last Synced: 2025-09-01T12:23:12.769Z (10 months ago)
- Topics: firefox
- Language: HTML
- Homepage: https://eviltrap.site
- Size: 1.19 MB
- Stars: 16
- Watchers: 4
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Evil Traps for Firefox 🦊
A collection of web experiments that slow / crash the browser or annoy, spam or phish the user by exploiting bugs.
## Setup
Node v14 or higher recommended.
Install dependencies:
```
npm install
```
## Deploy
Install production dependencies
```
npm ci --only=production
```
Start the server with:
```
npm start
```
If you want to change the host / port the web server listens on simply pass the environment variables `HOST`, `PORT`.
Example in bash:
```
HOST=0.0.0.0 PORT=80 npm start
```
## Development
To run the app in development use
```
npm run dev
```
This will automatically compile and run the application and restart it if you make changes to the code.
### Add a new Evil Trap
To add a new evil trap to the app, create a new folder in [src/traps](src/traps). It should contain an `index.js` file exporting an [EvilTrap](src/EvilTrap.js) instance. Once created it should appear in the main navigation.
See the [HelloWorld trap](src/traps/hello-world) for an example.