您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Change the text color of YouTube's website to a bright and vibrant color every second
// ==UserScript== // @name Change YouTube Text Color // @namespace http://tampermonkey.net/ // @version 0.1 // @description Change the text color of YouTube's website to a bright and vibrant color every second // @author You // @match https://www.youtube.com/* // @grant none // ==/UserScript== (function() { 'use strict'; // Function to generate a random bright and vibrant color in hexadecimal format function getRandomColor() { const brightness = 50; // Adjust brightness (0 to 100) const hue = Math.floor(Math.random() * 360); // Random hue (0 to 359) return `hsl(${hue}, 100%, ${brightness}%)`; } // Function to change the text color to a random bright and vibrant color function changeTextColor() { document.querySelectorAll('*').forEach(function(element) { element.style.color = getRandomColor(); }); } // Set interval to change the text color every second setInterval(changeTextColor, 1000); })();