您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Change mouse color in Shell Shockers using an RGB color wheel
// ==UserScript== // @name Shell Shockers Mouse Color Changer // @namespace http://tampermonkey.net/ // @version 0.2 // @description Change mouse color in Shell Shockers using an RGB color wheel // @author You // @match https://shellshock.io/ // @grant none // ==/UserScript== (function() { 'use strict'; // Function to create an RGB color picker dialog function showColorPicker() { const color = prompt('Choose a color using RGB values (e.g., 255, 0, 0 for red):'); if (color) { const [red, green, blue] = color.split(',').map(value => parseInt(value.trim(), 10)); const isValidColor = !isNaN(red) && !isNaN(green) && !isNaN(blue) && red >= 0 && red <= 255 && green >= 0 && green <= 255 && blue >= 0 && blue <= 255; if (isValidColor) { const newMouseColor = `rgb(${red}, ${green}, ${blue})`; const gameCanvas = document.getElementById('game-canvas'); if (gameCanvas) { gameCanvas.style.cursor = `url('data:image/svg+xml;utf8,<svg fill="${encodeURIComponent(newMouseColor)}" height="24" width="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="12" r="12"/></svg>'), auto`; } } else { alert('Invalid RGB values. Please try again.'); } } } // Add an event listener to trigger the color picker when the game loads window.addEventListener('load', () => { showColorPicker(); }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址