您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Click eye to show/hide bullseye playerlist(auto hidden by default)
当前为
// ==UserScript== // @name Autohides playerlist on bullseye and add toggle icon to show it. // @version v0.3 // @description Click eye to show/hide bullseye playerlist(auto hidden by default) // @author trausi // @match https://www.geoguessr.com/bullseye/* // @icon https://www.google.com/s2/favicons?sz=64&domain=geoguessr.com // @license none // @grant GM_xmlhttpRequest // @namespace https://gf.qytechs.cn/users/1452061 // ==/UserScript== const autohidden = true; let sentinel = false; const targetClass = ".slanted-wrapper_root__XmLse"; async function main() { if (sentinel) { return; } sentinel = true const toggleBtn = document.createElement('button'); toggleBtn.textContent = '👁'; // tiny eye emoji or you can use "≡" or "P" toggleBtn.title = 'Toggle Player List'; Object.assign(toggleBtn.style, { position: 'absolute', top: '6px', right: '6px', padding: '2px 6px', fontSize: '12px', border: 'none', borderRadius: '4px', background: '#5b3b9d', color: '#fff', cursor: 'pointer', zIndex: 9999, opacity: 0.8 }); toggleBtn.addEventListener('mouseenter', () => { toggleBtn.style.opacity = 1; }); toggleBtn.addEventListener('mouseleave', () => { toggleBtn.style.opacity = 0.8; }); toggleBtn.addEventListener('click', () => { const playerList = document.querySelector('.game-panorama_playerList__tITUA'); if (playerList) { playerList.style.display = (playerList.style.display === 'none') ? '' : 'none'; } }); const targetDiv = document.querySelector(targetClass); if (targetDiv) { targetDiv.prepend(toggleBtn); } if (autohidden) { const playerList = document.querySelector('.game-panorama_playerList__tITUA'); if (playerList) { playerList.style.display = (playerList.style.display === 'none') ? '' : 'none'; } } console.log("He1111re"); } new MutationObserver((mutations) => { if (!document.querySelector(targetClass)) { sentinel = false; return; } main(); }).observe(document.body, { subtree: true, childList: true });
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址