Advertisement
Guest User

Untitled

a guest
Mar 30th, 2020
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. 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