您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Improves Drawaria: forces English, shows word hint & timer highlight
// ==UserScript== // @name Drawaria Enhancer (English UI) // @namespace http://tampermonkey.net/ // @version 1.0 // @description Improves Drawaria: forces English, shows word hint & timer highlight // @author belen // @match https://drawaria.online/* // @icon https://drawaria.online/favicon.ico // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; const waitForElement = (selector, callback) => { const el = document.querySelector(selector); if (el) return callback(el); const observer = new MutationObserver(() => { const el = document.querySelector(selector); if (el) { observer.disconnect(); callback(el); } }); observer.observe(document.body, { childList: true, subtree: true }); }; // Force language to English localStorage.setItem('lang', 'en'); // Highlight the drawing timer waitForElement('.round-timer', (timer) => { timer.style.fontSize = '24px'; timer.style.color = 'red'; timer.style.fontWeight = 'bold'; }); // Show your drawing word on screen clearly const observer = new MutationObserver(() => { const hint = document.querySelector('.drawer-word'); if (hint && !document.querySelector('#wordDisplay')) { const wordDiv = document.createElement('div'); wordDiv.id = 'wordDisplay'; wordDiv.textContent = 'Draw: ' + hint.textContent; wordDiv.style.position = 'absolute'; wordDiv.style.top = '80px'; wordDiv.style.left = '10px'; wordDiv.style.fontSize = '28px'; wordDiv.style.fontWeight = 'bold'; wordDiv.style.color = '#00ccff'; wordDiv.style.zIndex = 9999; document.body.appendChild(wordDiv); } }); observer.observe(document.body, { childList: true, subtree: true }); })();