Shows the round briefly, then screen goes black and you have unlimited time to make your guess.
< Feedback on Geoguessr Blink Mode
The cn function comes from the styles scan library included in this line
// @require https://update.greasyfork.org/scripts/460322/1408713/Geoguessr%20Styles%20Scan.js
I normally just ignore those warnings but you could paste the contents of that library at the bottom of the script and they should go away. Just remove it again before publishing a new version if you're making any changes.
const _cndic = {};
const _hrefset = new Set();
async function scanStyles() {
for (let node of document.querySelectorAll('head link[rel="stylesheet"], head style[data-n-href*=".css"]')) {
const href = node.href || location.origin+node.dataset.nHref;
if (_hrefset.has(href)) continue;
_hrefset.add(href);
await fetch(href)
.then(res => res.text())
.then(stylesheet => {
for (let className of stylesheet.split(".")) {
const ind = className.indexOf("__");
if (ind != -1) _cndic[className.substr(0, ind+2)] = className.substr(0, ind+7);
};
});
};
};
const cn = (classNameStart) => _cndic[classNameStart]; // cn("status_section__") -> "status_section__8uP8o"
const checkAllStylesFound = (STYLES_USED) => STYLES_USED.reduce((res, className) => res && cn(className), true);
async function requireClassName(classNameStart) {
if (_cndic[classNameStart]) return _cndic[classNameStart];
return await scanStyles().then(() => _cndic[classNameStart]);
}
I used Google Translate from Japanese, so I apologize if there are any mistranslations. The part of the code that says "cn" was flagged by eslint. I would appreciate it if you could tell me how to resolve this.