您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Hide's the chatbox while you play IdleScape
- // ==UserScript==
- // @name Hide IdleScape ChatBox
- // @namespace SobieskiCodes
- // @version 0.2
- // @description Hide's the chatbox while you play IdleScape
- // @author probsjustin
- // @match http*://*idlescape.com/game
- // @grant none
- // ==/UserScript==
- (function() {
- 'use strict';
- var checkExist = setInterval(function() {
- var chatBox = document.getElementsByClassName("play-area-chat-container");
- if (chatBox[0] !== undefined || null) {
- chatBox[0].style.display = 'none';
- }
- }, 3000);
- })();
- // (function() {
- // while (document.getElementsByClassName("play-area-chat-container") === null || undefined) {
- // var chatBox = document.getElementsByClassName("play-area-chat-container");
- // if (chatBox[0] === undefined || null) {
- // chatBox = document.getElementsByClassName("play-area-chat-container");
- // } else if (chatBox[0].style.display !== 'none') {
- // chatBox[0].style.display = 'none'
- // break
- // }
- //
- // }
- // })();