您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Shows the round briefly, then screen goes black and you have unlimited time to make your guess.
当前为
- // ==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.0
- // @author macca#8949
- // @license MIT
- // @include https://www.geoguessr.com/*
- // @run-at document-start
- // @grant none
- // @namespace https://greasyfork.org/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();
- if (element.isSameNode(document.elementFromPoint(rect.left, rect.top))) {
- return true;
- }
- return false;
- }
- let observer = new MutationObserver((mutations) => {
- if (document.querySelector('.compass__indicator')) {
- if (onScreen(document.querySelector('.compass__indicator'))) {
- setTimeout(() => {
- document.querySelector('.widget-scene-canvas').style.display = 'none';
- }, timeLimit * 1000);
- }
- }
- });
- observer.observe(document.body, {
- characterDataOldValue: false,
- subtree: true,
- childList: true,
- characterData: false
- });