Localized map and map labels for Geoguessr

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

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 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.