您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
The chatbox in Idlescape is initially hidden but can be expanded
// ==UserScript== // @name Idlescape shut up chat // @namespace http://tampermonkey.net/ // @version 1.0 // @description The chatbox in Idlescape is initially hidden but can be expanded // @license GPL-3.0 // @author WilliW // @match https://idlescape.com/game // @icon https://no-fun.de/images/shutup.png // ==/UserScript== /* jshint esversion: 6 */ (function () { "use strict"; onGameReady(hideChat); function onGameReady(callback) { const chatButtons = document.getElementsByClassName("chat-buttons"); if (chatButtons.length === 0) { setTimeout(function () { onGameReady(callback); }, 250); } else { callback(chatButtons[0]); } } function hideChat(buttons) { const hideButton = buttons.firstChild; if (hideButton) { hideButton.click(); } } })();