您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
what, you want to hide either only the map or all overlays? well then, h and j are the keys to success
当前为
// ==UserScript== // @name GeoGuessr Hide Overlays // @namespace https://greasyforks.org/en/users/1501889 // @version 1.312 // @description what, you want to hide either only the map or all overlays? well then, h and j are the keys to success // @author Clemens // @match https://www.geoguessr.com/* // @icon https://www.google.com/s2/favicons?domain=geoguessr.com // @run-at document-idle // @license MIT // ==/UserScript== (function() { 'use strict'; const findElements = (selector) => { return Array.from(document.querySelectorAll(selector)); }; document.addEventListener('keydown', (event) => { if (event.key === 'h' || event.key === 'j') { event.preventDefault(); } if (event.key === 'h') { const mapContainer = document.querySelector('div[data-qa="guess-map"]'); if (mapContainer) { mapContainer.style.display = (mapContainer.style.display === 'none') ? '' : 'none'; } } if (event.key === 'j') { const overlaySelectors = [ 'div[data-qa="guess-map"]', '.game_status___YFni', '.game_controls__xgq6p', '.game_inGameLogos__T9d3L', '.panorama-compass_compassContainer__VAYam' ]; const overlays = findElements(overlaySelectors.join(', ')); if (overlays.length > 0) { const isHidden = overlays[0].style.display === 'none'; overlays.forEach(overlay => { overlay.style.display = isHidden ? '' : 'none'; }); } } }); })();