您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
omq no dropdown, toggle with alt+j
// ==UserScript== // @name omq no dropdown // @description omq no dropdown, toggle with alt+j // @match *://osumusicquiz.com/* // @run-at document-start // @license MIT // @version 0.0.1.20250501224812 // @namespace https://greasyfork.org/users/1185612 // ==/UserScript== let isHidden = false; const style = document.createElement('style'); style.textContent = `.autocomplete-dropdown { display: none !important; }`; style.id = 'dropdown-hide-style'; const insertStyle = () => { if (!document.getElementById('dropdown-hide-style')) { document.head.appendChild(style); } }; const removeStyle = () => { const existing = document.getElementById('dropdown-hide-style'); if (existing) existing.remove(); }; const observer = new MutationObserver(() => { if (isHidden) { document.querySelectorAll('.autocomplete-dropdown').forEach(dd => { dd.style.display = 'none'; }); } }); const startObserver = () => { if (document.body) { if (isHidden) insertStyle(); observer.observe(document.body, { childList: true, subtree: true }); } else { requestAnimationFrame(startObserver); } }; startObserver(); document.addEventListener('keydown', (e) => { if (e.altKey && e.key.toLowerCase() === 'j') { isHidden = !isHidden; if (isHidden) { insertStyle(); } else { removeStyle(); } } });