Localized map and map labels for Geoguessr

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

Author
geoguessr_anon
Daily installs
0
Total installs
79
Ratings
0 0 0
Version
1.5.0
Created
2022-05-21
Updated
2022-05-22
License
WTFPL
Applies to

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.