您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
This script returns the old geoguessr duels UI but only in matches.
// ==UserScript== // @name GeoGuessr Return Old Duels UI // @namespace http://tampermonkey.net/ // @version 1.3 // @description This script returns the old geoguessr duels UI but only in matches. // @author AaronThug // @match https://www.geoguessr.com/* // @icon https://www.geoguessr.com/_next/image?url=%2F_next%2Fstatic%2Fmedia%2Fsolo-duels.38cea15c.webp&w=64&q=75 // @run-at document-end // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; function getLanguagePrefix() { const url = window.location.pathname; const urlParts = url.split('/').filter(part => part.length > 0); if (urlParts[0] && urlParts[0].length <= 3 && urlParts[0] !== 'multiplayer') { return '/' + urlParts[0]; } return ''; } function handlePlayButtonClick(event) { const path = window.location.pathname; const isExactMultiplayerPage = path.endsWith('/multiplayer'); if (!isExactMultiplayerPage) { return; } let target = event.target; let isPlayButton = false; while (target && target !== document) { if (target.tagName === 'BUTTON') { const buttonText = target.textContent.trim(); if (buttonText === 'Play' || buttonText === 'Spielen' || buttonText === 'Jouer' || buttonText === 'Jugar' || buttonText === 'Gioca' || buttonText === 'Spela' || buttonText === 'プレイ' || buttonText === 'Jogar' || buttonText === 'Spelen' || buttonText === 'Oyna') { isPlayButton = true; break; } } target = target.parentElement; } if (isPlayButton) { event.preventDefault(); event.stopPropagation(); const langPrefix = getLanguagePrefix(); window.location.href = `https://www.geoguessr.com${langPrefix}/matchmaking`; return false; } } function setupEventListener() { document.addEventListener('click', handlePlayButtonClick, true); } if (document.readyState === 'loading') { document.addEventListener('DOMContentLoaded', function() { setTimeout(setupEventListener, 500); }); } else { setTimeout(setupEventListener, 500); } })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址