Installation
Simply drop the minified file into your site:
<script src="pestilence.min.js"></script>
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
Audio Pest
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. (Disabled on this page.)
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.