Ultimate Geoguessr Cheat

Get Max points at the click of a button, or, randomly score between 4500 to 5000 points

当前为 2022-09-02 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Ultimate Geoguessr Cheat
  3. // @namespace http://tampermonkey.net/
  4. // @version 4.5
  5. // @description Get Max points at the click of a button, or, randomly score between 4500 to 5000 points
  6. // @author 0X69ED75
  7. // @match https://www.geoguessr.com/*
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=geoguessr.com
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12.  
  13. alert(` This script is free to use. Please give good feedback on Greasyfork
  14. ============================================
  15. => Please use the safer guess Option to avoid bans in competitive. <=
  16. ============================================
  17. Controls:
  18. 'C': Instantly Place A "Safer" Guess (4500-5000).
  19. 'B': Instantly Guess Correct Answer
  20. 'V': Show best calculation of current location
  21. ----------------------------------------------------------
  22. Please Note: Sometimes, the guess correct answer fails,
  23. if this happens just press B or C again
  24. ----------------------------------------------------------`)
  25.  
  26.  
  27. let q = () => {
  28. let x = c()
  29. z(x[0],x[1]).then(xz => {
  30. console.log(xz)
  31. alert(`
  32. Country: ${xz.address.country}
  33. County: ${xz.address.county}
  34. Road: ${xz.address.road}
  35. State: ${xz.address.state}
  36. Latitude: ${x[0]}
  37. Longitude: ${x[1]}
  38. `) } );
  39.  
  40. }
  41.  
  42. let z = async(w, eds) =>{
  43. let response = await fetch(`https://nominatim.openstreetmap.org/reverse?lat=${w}&lon=${eds}&format=json`)
  44. let data = await response.json()
  45. return data;
  46. }
  47.  
  48. let c = () => {
  49. let x = document.querySelectorAll('[data-qa="panorama"]')[0]
  50. let wd = Object.keys(x)
  51. let f = wd.find(xz => xz.startsWith("__reactFiber$"))
  52. let g = x[f].return.memoizedProps
  53. let e = g.lat
  54. let b = g.lng
  55. return([e,b])
  56. }
  57.  
  58. let mn = (sf) => {
  59. let e = c()
  60. if(sf){e[0] += (Math.random()/2);e[1] += (Math.random()/2);}
  61. let kj = document.getElementsByClassName("guess-map__canvas-container")[0]
  62. let w = Object.keys(kj)
  63. let s = w.find(key => key.startsWith("__reactFiber$"))
  64. let oc = kj[s].return.memoizedProps.onMarkerLocationChanged
  65. oc({lat:e[0],lng:e[1]})
  66. setTimeout(function() {
  67. ec()
  68. }, 1000);
  69. }
  70.  
  71. let ec = () => {
  72. let g = document.getElementsByClassName("button_button__CnARx button_variantPrimary__xc8Hp")[0]
  73. let l = Object.keys(g).find(key => key.startsWith("__reactFiber$"))
  74. let er = g[l]
  75. let ggf = er.child.return.memoizedProps.onClick
  76. ggf();
  77. }
  78.  
  79. let ex = (e) => {
  80. if(e.keyCode === 86){q()} // key = v
  81. if(e.keyCode === 66){mn(false)} // key = b
  82. if(e.keyCode === 67){mn(true)} // key = c
  83. }
  84.  
  85.  
  86. document.addEventListener("keydown", ex);