您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
闯关时隐藏下面的键盘(原vip功能)
当前为
// ==UserScript== // @name 隐藏键盘 // @namespace https://github.com/nelvko/script/blob/master/youhou/hidden-keyboard.js // @match *://www.edclub.com/sportal/* // @match *://www.typingclub.com/sportal/* // @grant none // @version 1.0 // @author nelvko // @license MIT // @description 闯关时隐藏下面的键盘(原vip功能) // ==/UserScript== (function () { 'use strict'; // 创建一个 MutationObserver 来监听元素的加载 const observer = new MutationObserver(() => { const keyboard = document.getElementsByClassName("keyboard-plugin"); const ad = document.getElementById("adslot_video") // console.log("keyboard", keyboard); // console.log("ad", ad); if (keyboard && keyboard[0]) { keyboard[0].style.setProperty('visibility', 'hidden', 'important'); } if (ad) { ad.style.setProperty('visibility', 'hidden', 'important'); // observer.disconnect(); } }); observer.observe(document.body, { childList: true, subtree: true }); })();