ShadeRoot Prank

Install this script on a friend's computer, hide their Greasemonkey icon and look at their faces.

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

//
// Written by Glenn Wiking
// Script Version: 0.0.1b
//
// ==UserScript==
// @name        ShadeRoot Prank
// @namespace   SRPRANK
// @version     0.0.1b
// @grant       none
// @icon        //
// @description	Install this script on a friend's computer, hide their Greasemonkey icon and look at their faces.

// @include     *

// ==/UserScript==

function ShadeRootPrank(css) {
    var head, style;
    head = document.getElementsByTagName('head')[0];
    if (!head) { return; }
    style = document.createElement('style');
    style.type = 'text/css';
    style.innerHTML = css;
    head.appendChild(style);
}

ShadeRootPrank(
	'html, body {filter: grayscale(100%) blur(.5px) !important; opacity: .95;}'
	+
	'* a, * button, * li {filter: blur(0) !important; transition: filter 200ms ease-in-out 0ms !important;}'
	+
	'* a:hover, * button:hover, * li:hover {filter: blur(.5px) !important; transition: filter 200ms ease-in-out 0ms !important;}'
);