Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A JavaScript library to ruin someone’s day.
JavaScript
branch: master

Update README.md

Add link to demo from README
Failed to load latest commit information.
README.md Update README.md
pestilence.js Remove console logs
pestilence.min.js

README.md

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:

<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

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
Something went wrong with that request. Please try again.