flashy colors oh yeah

oof ouch owie my eyes

目前为 2020-01-22 提交的版本。查看 最新版本

// ==UserScript==
// @name         flashy colors oh yeah
// @namespace    http://tampermonkey.net/
// @version      1
// @description  oof ouch owie my eyes
// @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));

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址