Basic Bitch Prank

Does something that isn't all that funny

目前為 2022-04-01 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

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