Skip to content

Instantly share code, notes, and snippets.

@sindresorhus
Last active January 4, 2023 10:33
Show Gist options
  • Select an option

  • Save sindresorhus/3698374 to your computer and use it in GitHub Desktop.

Select an option

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
Copy Markdown

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
Copy Markdown

lol, awesome

@Quader

Quader commented Sep 12, 2012

Copy link
Copy Markdown

Very Nice ! xD

@sindresorhus

Copy link
Copy Markdown
Author

@mathiasbynens Good idea, thanks :)

@yornaath

Copy link
Copy Markdown

haha lol =)

@Munter

Munter commented Jan 23, 2014

Copy link
Copy Markdown

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

@anthonyshort

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

@mathiasbynens

Copy link
Copy Markdown

Also see evil.css :)

@martypenner

Copy link
Copy Markdown

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

@kylejlin

Copy link
Copy Markdown

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