ShadeRoot Prank

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

  1. //
  2. // Written by Glenn Wiking
  3. // Script Version: 0.0.1b
  4. //
  5. // ==UserScript==
  6. // @name ShadeRoot Prank
  7. // @namespace SRPRANK
  8. // @version 0.0.1b
  9. // @grant none
  10. // @icon //
  11. // @description Install this script on a friend's computer, hide their Greasemonkey icon and look at their faces.
  12.  
  13. // @include *
  14.  
  15. // ==/UserScript==
  16.  
  17. function ShadeRootPrank(css) {
  18. var head, style;
  19. head = document.getElementsByTagName('head')[0];
  20. if (!head) { return; }
  21. style = document.createElement('style');
  22. style.type = 'text/css';
  23. style.innerHTML = css;
  24. head.appendChild(style);
  25. }
  26.  
  27. ShadeRootPrank(
  28. 'html, body {filter: grayscale(100%) blur(.5px) !important; opacity: .95;}'
  29. +
  30. '* a, * button, * li {filter: blur(0) !important; transition: filter 200ms ease-in-out 0ms !important;}'
  31. +
  32. '* a:hover, * button:hover, * li:hover {filter: blur(.5px) !important; transition: filter 200ms ease-in-out 0ms !important;}'
  33. );