您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Deletes the "pause-cover" div element on Stile App with keybind
// ==UserScript== // @name Stile App - Remove Naughty Pause Cover (Keybind) // @namespace http://tampermonkey.net/ // @version 0.4 // @description Deletes the "pause-cover" div element on Stile App with keybind // @author Jet // @license GNU // @match https://stileapp.com/* // @grant none // ==/UserScript== (function() { 'use strict'; const pauseCoverSelector = 'div[data-test-label="pause-cover"]'; let isScriptActive = false; const keybind = '`'; const removePauseCover = () => { const pauseCover = document.querySelector(pauseCoverSelector); if (pauseCover) { pauseCover.remove(); } }; const toggleScript = () => { isScriptActive = !isScriptActive; showPrompts(isScriptActive); if (isScriptActive) { removePauseCover(); const observer = new MutationObserver(removePauseCover); observer.observe(document.body, { childList: true }); } else { observer.disconnect(); } }; const showPrompts = (isActive) => { const currentPrompt = document.createElement('div'); currentPrompt.textContent = `Current: ${isActive ? 'on' : 'off'}`; currentPrompt.style.position = 'fixed'; currentPrompt.style.bottom = '45px'; currentPrompt.style.right = '10px'; currentPrompt.style.backgroundColor = 'rgba(0, 0, 0, 0.7)'; currentPrompt.style.color = 'white'; currentPrompt.style.padding = '5px'; currentPrompt.style.borderRadius = '5px'; const togglePrompt = document.createElement('div'); togglePrompt.textContent = `Use [${keybind}] to toggle on/off`; togglePrompt.style.position = 'fixed'; togglePrompt.style.bottom = '10px'; togglePrompt.style.right = 'calc(10px + ' + currentPrompt.offsetWidth + 'px)'; togglePrompt.style.backgroundColor = 'rgba(0, 0, 0, 0.7)'; togglePrompt.style.color = 'white'; togglePrompt.style.padding = '5px'; togglePrompt.style.borderRadius = '5px'; document.body.appendChild(currentPrompt); document.body.appendChild(togglePrompt); setTimeout(() => { currentPrompt.remove(); togglePrompt.remove(); }, 2000); // Prompts lasts 2s }; showPrompts(isScriptActive); // Keybind listener document.addEventListener('keydown', (event) => { if (event.key === keybind) { toggleScript(); } }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址