Geoguessr Blink Mode

Shows the round briefly, then screen goes black and you have unlimited time to make your guess.

当前为 2022-04-13 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Geoguessr Blink Mode
  3. // @description Shows the round briefly, then screen goes black and you have unlimited time to make your guess.
  4. // @version 0.2.1
  5. // @author macca#8949
  6. // @license MIT
  7. // @include https://www.geoguessr.com/*
  8. // @run-at document-start
  9. // @grant none
  10. // @namespace https://gf.qytechs.cn/en/scripts/438579-geoguessr-blink-mode
  11. // ==/UserScript==
  12.  
  13. const timeLimit = 1.5; // MODIFY THIS IF YOU WANT TO CHANGE THE TIME
  14.  
  15. function onScreen(element) {
  16. let rect = element.getBoundingClientRect();
  17. let topElement = document.elementFromPoint(rect.left, rect.top);
  18. if (element.isSameNode(topElement)) {
  19. return true;
  20. }
  21. return false;
  22. }
  23.  
  24. let observer = new MutationObserver((mutations) => {
  25. if (document.querySelector('.mapsConsumerUiSceneInternalCoreScene__widget-scene-canvas')) {
  26. if (onScreen(document.querySelector('.mapsConsumerUiSceneInternalCoreScene__widget-scene-canvas'))) {
  27. setTimeout(() => {
  28. document.querySelector('.widget-scene-canvas').style.display = 'none';
  29. }, timeLimit * 1000);
  30. }
  31. }
  32. });
  33.  
  34. observer.observe(document.body, {
  35. characterDataOldValue: false,
  36. subtree: true,
  37. childList: true,
  38. characterData: false
  39. });

QingJ © 2025

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