Ultimate Geoguessr Cheat

Get Max points at the click of a button.

目前為 2022-08-31 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         Ultimate Geoguessr Cheat
// @namespace    http://tampermonkey.net/
// @version      4.0
// @description  Get Max points at the click of a button.
// @author       0X69ED75
// @match        https://www.geoguessr.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=geoguessr.com
// @grant        none
// ==/UserScript==


alert(`Thank you for using my script for Geoguessr.
            Controls:
            'B': Instantly Guess Correct Answer
            'V': Show best calculation of current location
            ----------------------------------------------------------
            Please Note: Sometimes, the guess correct answer fails,
            if this happens just press B again
            ----------------------------------------------------------
            This script is free to use. Please give good feedback on Greasyfork`)


let q = () => {
    let x = c()

    z(x[0],x[1]).then(xz => {
        console.log(xz)
        alert(`
    Country: ${xz.address.country}
    County: ${xz.address.county}
    Road: ${xz.address.road}
    State: ${xz.address.state}
    Latitude: ${x[0]}
    Longitude: ${x[1]}
    `) } );

}

let z = async(w, eds) =>{
    let response = await fetch(`https://nominatim.openstreetmap.org/reverse?lat=${w}&lon=${eds}&format=json`)
    let data = await response.json()
    return data;
}

let c = () => {
    let x = document.querySelectorAll('[data-qa="panorama"]')[0]
    let wd = Object.keys(x)
    let f = wd.find(xz => xz.startsWith("__reactFiber$"))
    let g = x[f].return.memoizedProps

    let e = g.lat
    let b = g.lng

    return([e,b])
}

let mn = () => {
    let e = c()

    let kj = document.getElementsByClassName("guess-map__canvas-container")[0]
    let w = Object.keys(kj)
    let s = w.find(key => key.startsWith("__reactFiber$"))
    let oc = kj[s].return.memoizedProps.onMarkerLocationChanged

    oc({lat:e[0],lng:e[1]})

    setTimeout(function() {
        ec()
    }, 1000);
}

let ec = () => {
    let g = document.getElementsByClassName("button_button__CnARx button_variantPrimary__xc8Hp")[0]
    let l = Object.keys(g).find(key => key.startsWith("__reactFiber$"))
    let er = g[l]
    let ggf = er.child.return.memoizedProps.onClick

    ggf();
}

let ex = (e) => {
    if(e.keyCode === 86){q()} // key = v
    if(e.keyCode === 66){mn()} // key = b

}


document.addEventListener("keydown", ex);