您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Replace The blue color of the play button by the old color.
// ==UserScript== // @name Roblox Green Play Button // @namespace http://tampermonkey.net/ // @version 1.0 // @description Replace The blue color of the play button by the old color. // @author aividedghost // @match https://www.roblox.com/games/* // @grant none // ==/UserScript== (function () { 'use strict'; function applyStyleToPlayButton() { const playButton = document.querySelector('button[data-testid="play-button"]'); if (playButton && !playButton.dataset.modified) { playButton.style.backgroundColor = '#00b06b'; // playButton.style.color = 'white'; playButton.style.border = 'none'; playButton.style.borderRadius = '8px'; playButton.style.fontWeight = 'bold'; playButton.style.transition = 'background-color 0.2s ease'; playButton.style.boxShadow = '0 2px 6px rgba(0,0,0,0.3)'; playButton.dataset.modified = 'true'; playButton.addEventListener('mouseover', () => { playButton.style.backgroundColor = '#009a5a'; }); playButton.addEventListener('mouseout', () => { playButton.style.backgroundColor = '#00b06b'; }); } } // applyStyleToPlayButton(); // const observer = new MutationObserver(() => { applyStyleToPlayButton(); }); observer.observe(document.body, { childList: true, subtree: true }); })();