Basic Bitch Prank

Does something that isn't all that funny

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

//
// 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" )*/ });