您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
pog
当前为
- // ==UserScript==
- // @name lets go
- // @namespace http://tampermonkey.net/
- // @version 1
- // @description pog
- // @author Special Kid
- // @include http://*
- // @include https://*
- // @grant none
- // ==/UserScript==
- var Time = 0.05; // time in seconds, original is 0.05
- var i;
- var x = document.getElementsByTagName("*");
- function secondsToMilli(s) {
- return s * 1000;
- }
- function getRandomInt(min, max) {
- min = Math.ceil(min);
- max = Math.floor(max);
- return Math.floor(Math.random() * (max - min + 1)) + min;
- }
- function blues() {
- for (i = 0; i < x.length; i++) {
- x[i].style.backgroundColor = "hsl(" + ((x.length * getRandomInt(0, 320)) * i / x.length) + ",80%,50%)";
- }
- }
- setInterval(blues, secondsToMilli(Time));