Geoguessr Blink Mode

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

当前为 2022-05-07 提交的版本,查看 最新版本

  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.2
  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
  14. // ^^^ Modify this number above to change the time
  15.  
  16.  
  17.  
  18. // --------- DON'T MODIFY ANYTHING BELOW THIS LINE -------- //
  19.  
  20.  
  21. function onScreen(element) {
  22. let rect = element.getBoundingClientRect();
  23. let topElement = document.elementFromPoint(rect.left, rect.top);
  24. if (element.isSameNode(topElement)) {
  25. return true;
  26. }
  27. return false;
  28. }
  29.  
  30. let observer = new MutationObserver((mutations) => {
  31. if (document.querySelector('.compass__indicator')) {
  32. if (onScreen(document.querySelector('.compass__indicator'))) {
  33. setTimeout(() => {
  34. document.querySelector('.widget-scene-canvas').style.display = 'none';
  35. }, timeLimit * 1000);
  36. }
  37. }
  38. });
  39.  
  40. observer.observe(document.body, {
  41. characterDataOldValue: false,
  42. subtree: true,
  43. childList: true,
  44. characterData: false
  45. });

QingJ © 2025

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