by migreyes

migreyes / jquery.wanker

A jQuery plugin that reveals a takeover when people start excessively resizing their browser.

201 Stars 21 Forks Last release: Not found MIT License 20 Commits 3 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:


Responsive design has been a blessing to web crafters everywhere. The web, however, was meant to be read, not squished. jquery.wanker.js is a tiny (549 bytes minified) jQuery plugin that reveals a public service announcement when people start excessively resizing their desktop browser as they try to see your responsive breakpoints.

jquery.wanker.js is the perfect easter egg plugin for designers, photographers, writers, and other creative people with a sense of humor displaying their work on the web wishing their viewers to focus more on their work, and less on the magic of media queries.


Installing jquery.wanker.js

Assuming you’re already using jQuery, include the file in your


Design your public service announcement

The web was meant to be read, not squished.

Prevent excessive browser resizing and get people back to reading.

Call the wanker() function on your design

$(function() {

The message will show up after 1 second of continuous browser resizing, and will disappear 1.5 seconds later. Prefer to choose your own delay and duration? No problem!

$(function() {
  $('[data-wanker]').wanker({delay: 5000, duration: 5000});

View (and contribute to!) the list of websites using jquery.wanker.js.

Made with love by @migreyes.

Special thanks to @sstephenson for his code review.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.