Geoguessr Blink Mode

Shows the round briefly, then screen goes black and you have unlimited time to make your guess.

اعتبارا من 13-04-2022. شاهد أحدث إصدار.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

ستحتاج إلى تثبيت إضافة مثل Stylus لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتتمكن من تثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

(لدي بالفعل مثبت أنماط للمستخدم، دعني أقم بتثبيته!)

// ==UserScript==
// @name         Geoguessr Blink Mode
// @description  Shows the round briefly, then screen goes black and you have unlimited time to make your guess.
// @version      0.2.1
// @author       macca#8949
// @license      MIT
// @include      https://www.geoguessr.com/*
// @run-at       document-start
// @grant        none
// @namespace    https://greatest.deepsurf.us/en/scripts/438579-geoguessr-blink-mode
// ==/UserScript==

const timeLimit = 1.5; // MODIFY THIS IF YOU WANT TO CHANGE THE TIME

function onScreen(element) {
    let rect = element.getBoundingClientRect();
    let topElement = document.elementFromPoint(rect.left, rect.top);
    if (element.isSameNode(topElement)) {
        return true;
    }
    return false;
}

let observer = new MutationObserver((mutations) => {
    if (document.querySelector('.mapsConsumerUiSceneInternalCoreScene__widget-scene-canvas')) {
        if (onScreen(document.querySelector('.mapsConsumerUiSceneInternalCoreScene__widget-scene-canvas'))) {
            setTimeout(() => {
                document.querySelector('.widget-scene-canvas').style.display = 'none';
            }, timeLimit * 1000);
        }
    }
});

observer.observe(document.body, {
  characterDataOldValue: false,
  subtree: true,
  childList: true,
  characterData: false
});