Localized map and map labels for Geoguessr

Replaces default map and map labels on Geoguessr with localized ones.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

作者
geoguessr_anon
今日安裝
0
安裝總數
106
評價
0 0 0
版本
1.5.0
建立日期
2022-05-21
更新日期
2022-05-22
尺寸
6.2 KB
授權條款
WTFPL
腳本執行於

Lets you change your map language and region on GeoGuessr.
Configuration is done when first loading a GeoGuessr page after installing the script, or from a button in the top-left on any GeoGuessr page.

USEFUL LINKS
List of Google Maps API language codes can be found here (determines the language of labels on your map):
https://developers.google.com/maps/faq#languagesupport

List of Google Maps API region codes can be found here (determines the regional variation of your map):
https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry
Note: Use the tags with type 'region'

NOTES
If you change language settings during a game, you'll need to refresh the page before the changes show.
If you're playing competitive or something, this could potentially be seen as cheating, so keep that in mind, and okay it with whomever beforehand. :)
I've only tested this using Firefox/Tampermonkey, YMMV with other browsers/userscript engines (GM_webRequest is not amazingly documented).

To-do:
- Add a button style that looks better for pro players.
- Add an option to hide the config button in matches.
- Come up with a more elegant way to restrict it to GeoGuessr pages:
Right now it runs on 'maps.googleapis.com/maps/api/' due to the @match for it, which seems to be required to get GM_webRequest to work. It immediately aborts the script if it detects the page it's running on isn't GeoGuessr, but technically it's still running something, which isn't ideal.