Basic Bitch Prank

Does something that isn't all that funny

Dovrai installare un'estensione come Tampermonkey, Greasemonkey o Violentmonkey per installare questo script.

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

Dovrai installare un'estensione come Tampermonkey o Violentmonkey per installare questo script.

Dovrai installare un'estensione come Tampermonkey o Userscripts per installare questo script.

Dovrai installare un'estensione come ad esempio Tampermonkey per installare questo script.

Dovrai installare un gestore di script utente per installare questo script.

(Ho già un gestore di script utente, lasciamelo installare!)

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione come ad esempio Stylus per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

Dovrai installare un'estensione per la gestione degli stili utente per installare questo stile.

(Ho già un gestore di stile utente, lasciamelo installare!)

//
// Written by Glenn Wiking
// Script Version: 1.0
//
//
// ==UserScript==
// @name        Basic Bitch Prank
// @namespace   A1
// @description Does something that isn't all that funny
// @version     1.0
// @icon        https://shuttle-storage.s3.amazonaws.com/demolav/Afbeeldingen/Prank.jpg

// @include     *
// @require			https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js 
// @require			https://cdn.jsdelivr.net/npm/js-cookie@2/src/js.cookie.min.js
// @require			https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/jquery.mark.es6.js

// ==/UserScript==

let update = setInterval( step, 1250);
let perc = 0;
$("body").attr("step", perc);
function step() {
  perc = (parseFloat( $("body:not(.admin)").attr("step") ) + 0.01).toFixed(2);
  if ( perc == 1 ) {
  	clearInterval( update );
  } else {
    $("body:not(.admin)").attr("step", perc);
    $("body:not(.admin)").css({"filter":"grayscale("+ perc +")"});
    //console.log(perc);
  }
}
$(window).on("blur", function() { clearInterval( update ); /*console.log( "Left" )*/ });
$(window).on("focus", function() { clearInterval( update );  update = setInterval( step, 1000); /*console.log( "Returned" )*/ });