Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- xmlhttp=new XMLHttpRequest();xmlhttp.open('GET','https://www.geoguessr.com/api/v3/games/'+top.location.href.split('/').slice(-1)[0],true);xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){if(xmlhttp.status==200){r=JSON.parse(xmlhttp.responseText).rounds.slice(-1)[0];alert('https://www.google.com/maps/?q='+r.lat+' '+r.lng);}}};xmlhttp.send(null);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement