您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Unhide and modify bonus labels on woogles.io, even with navigation within an SPA
// ==UserScript== // @name Woogles Bonus Label Fixer // @namespace http://tampermonkey.net/ // @version 1.1 // @description Unhide and modify bonus labels on woogles.io, even with navigation within an SPA // @author You // @license MIT // @match *://woogles.io/* // @match *://www.woogles.io/* // @grant none // ==/UserScript== (function() { 'use strict'; // Function to unhide bonus labels and update text function updateBonusLabels() { document.querySelectorAll('.bonus-label').forEach(function(element) { element.style.display = 'block'; element.style.visibility = 'visible'; element.style.opacity = '1'; }); const textMapping = { '2x letter': 'DL', '2x word': 'DW', '3x letter': 'TL', '3x word': 'TW' }; document.querySelectorAll('.bonus-label').forEach(function(element) { let text = element.textContent.trim(); if (textMapping[text]) { element.textContent = textMapping[text]; } }); } // Initial run to handle the page load updateBonusLabels(); // Create a MutationObserver to detect changes in the DOM (e.g., navigation within an SPA) const observer = new MutationObserver(() => { updateBonusLabels(); // Run the function when changes occur }); // Start observing the body for changes in child elements observer.observe(document.body, { childList: true, subtree: true }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址