您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Change "Tyrannian Random Event!!!" to "America Random Event!!!"
// ==UserScript== // @name America Random Event // @namespace http://tampermonkey.net/ // @version 1.0 // @description Change "Tyrannian Random Event!!!" to "America Random Event!!!" // @author Abel // @match *://grundos.cafe/* // @match *://*.grundos.cafe/* // @icon https://grundoscafe.b-cdn.net/random_events/sabrex.gif // @license Beerware // ==/UserScript== (function() { 'use strict'; function changeRandomEventText() { const rePrehistoric = document.querySelector('.re_prehistoric'); if (rePrehistoric) { rePrehistoric.innerHTML = rePrehistoric.innerHTML.replace('Tyrannian Random Event!!!', 'America Random Event!!!'); } } // Run immediately when page loads changeRandomEventText(); // Also run after a short delay to catch dynamically loaded content setTimeout(changeRandomEventText, 1000); setTimeout(changeRandomEventText, 3000); })();