Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/restlessdesign/pestilence
A JavaScript library to ruin someone’s day.
https://github.com/restlessdesign/pestilence
evil javascript prank
Last synced: 8 days ago
JSON representation
A JavaScript library to ruin someone’s day.
- Host: GitHub
- URL: https://github.com/restlessdesign/pestilence
- Owner: restlessdesign
- Created: 2013-03-29T06:02:30.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-08-26T15:45:20.000Z (over 8 years ago)
- Last Synced: 2023-04-03T14:54:27.667Z (over 1 year ago)
- Topics: evil, javascript, prank
- Language: JavaScript
- Homepage:
- Size: 55.7 KB
- Stars: 84
- Watchers: 5
- Forks: 9
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pestilence
A collection of JavaScript utilities to ruin someone’s day, regardless of ability…or disability.
11.93KB minified & gzipped
## Demo
http://restlessdesign.github.io/pestilence/
## Installation
Simply drop the minified file into your site:```html
```
No fancy DOM-ready methods here—the file blindly assumes that you can load a website within eight seconds. If you’re really concerned about that, strip out the `setTimeout` at the bottom of the file and call `Pestilence.initialize()` when you’re good and ready!
## Features
### AudioPest
Plays a high-pitched noise at random intervals.
### Mouse Pest
Replaces the user’s cursor with a duplicate that is offset approximately 50px down and to the right.
### Keyboard Pest
Randomly moves the caret as the user types within input fields.
### Accessibility Pest
Hides all headers and paragraph elements from screen readers and gives random tab indices to anchor elements.
## Known Bugs
- Not yet tested in IE
- No replacement cursors for Windows machines yet
- Safari appears unable to play sounds