GeoGuessr Globetrotter Turbo Mode Level Locations Export

Export the locations from the current turbo mode level as a json file

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         GeoGuessr Globetrotter Turbo Mode Level Locations Export
// @namespace    https://greasyfork.org/users/1340965-zecageo
// @version      1.0
// @description  Export the locations from the current turbo mode level as a json file
// @author       ZecaGeo <[email protected]>
// @run-at       document-end
// @match        https://www.geoguessr.com/api/v4/globetrotter/trip/current
// @grant        none
// @icon         https://www.google.com/s2/favicons?sz=64&domain=geoguessr.com
// @license      MIT
// @copyright    2025, ZecaGeo <[email protected]>
// ==/UserScript==

(function () {
  "use strict";
  const inputJson = document.querySelector("body > pre").innerText;
  const data = JSON.parse(inputJson);
  const locations = data.currentVisit.currentTurboModeLevel.locations;
  const outputJson = JSON.stringify(locations, null, 4);
  const blob = new Blob([outputJson], { type: "application/json" });
  const url = URL.createObjectURL(blob);
  const a = document.createElement("a");
  a.href = url;
  a.download = "geoguessr_turbo_mode_locations.json";
  a.click();
  URL.revokeObjectURL(url);
})();