Skip to content

Instantly share code, notes, and snippets.

@sindresorhus
Last active January 4, 2023 10:33
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save sindresorhus/3698374 to your computer and use it in GitHub Desktop.
Save sindresorhus/3698374 to your computer and use it in GitHub Desktop.
Blur prank UserScript

Most annoying prank ever. Applies 0.5px blur to every website.

Currently only works in Chrome.

Open the Extensions panel and drag the blur-prank.user.js file in on your victims browser.

// ==UserScript==
// @name Dictionary
// @version 0.1
// @author Sindre Sorhus
// @include *
// ==/UserScript==
document.documentElement.style.webkitFilter='blur(0.5px)';
@mathiasbynens
Copy link

Might just use document.documentElement instead of document.body so that it applies on display:block elements outside of <body> as well.

@paulmillr
Copy link

lol, awesome

@Quader
Copy link

Quader commented Sep 12, 2012

Very Nice ! xD

@sindresorhus
Copy link
Author

@mathiasbynens Good idea, thanks :)

@yornaath
Copy link

haha lol =)

@Munter
Copy link

Munter commented Jan 23, 2014

Note to self: Set screen lock timeout to 30 seconds when near @sindresorhus

@anthonyshort
Copy link

document.documentElement.style.webkitFilter='grayscale(100%)';

@mathiasbynens
Copy link

Also see evil.css :)

@martypenner
Copy link

Wow, that effect doesn't take long to make me feel anxious

@kylejlin
Copy link

Without extensions, you can just type this in the URL bar: javascript:void(document.documentElement.style.webkitFilter='blur(0.5px)');.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment