GeoGuessr Quick Next Round

Press the spacebar to start a round or to go to the next round

  1. // ==UserScript==
  2. // @name GeoGuessr Quick Next Round
  3. // @namespace leopoldwigbratt.com
  4. // @version 1.1.2
  5. // @license MIT
  6. // @description Press the spacebar to start a round or to go to the next round
  7. // @author Leopold Wigbratt
  8. // @match https://www.geoguessr.com/*
  9. // @icon https://www.google.com/s2/favicons?sz=64&domain=geoguessr.com
  10. // ==/UserScript==
  11.  
  12. const validPaths = ["maps", "game", "country-streak", "us-state-streak", "daily-challenges", "challenge"];
  13.  
  14. document.addEventListener('keypress', e => {
  15. if (e.keyCode === 32) {
  16. const button = document.querySelector('.button_variantPrimary__xc8Hp');
  17. const path = document.location.pathname;
  18. if (validPaths.every(p => !RegExp(`\/${p}.*`).test(path))) return;
  19. if (button && !button.parentNode.classList.contains('guess-map__guess-button')) {
  20. e.preventDefault();
  21. button.click();
  22. console.log('Saluī!');
  23. }
  24. }
  25. });

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址