Geoguessr Styles Scan

Provides utility functions to make your geoguessr scripts independent of arbitrary changes to class name suffixes

This script should not be not be installed directly. It is a library for other scripts to include with the meta directive // @require https://update.greasyfork.org/scripts/460322/1408713/Geoguessr%20Styles%20Scan.js


Ask a question, post a review, or report the script.
Author
victheturtle
Version
1.0.1
Created
2023-02-19
Updated
2024-07-10
Size
1.39 KB
License
MIT

Geoguessr sometimes updates its stylesheets, changing its class names, which can break user scripts despite no visible changes to the UI. These minor changes involve the last 5 characters of a class name, which always follow 2 underscores. For example, "status_section__8uP8o" is the class name for a section in the purple info bar at the top right of the screen in classic games.

This library provides utility functions to make your scripts independent of random changes to these last 5 characters, by letting you define class names by their prefix (underscores included: "status_section__") rather than the full name.