Seterra Hack

simple hack for seterra. colours the correct country/location in black, then white when clicked.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

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

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

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

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

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.

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

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

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

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

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

// ==UserScript==
// @name         Seterra Hack
// @namespace    http://tampermonkey.net/
// @license      MIT
// @version      2.0
// @description  simple hack for seterra. colours the correct country/location in black, then white when clicked.
// @author       azzlam
// @match        https://www.geoguessr.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=geoguessr.com
// @grant        none
// ==/UserScript==
 
(function() {
    'use strict';
    const style = document.createElement('style');
    document.head.appendChild(style);
 
    setInterval(() => {
        const gameHeader = document.querySelector('[data-qa="game-map-header"]');
        
        if (gameHeader) {
            const currentQuestionId = gameHeader.getAttribute('data-current-question-id');
            
            if (currentQuestionId) {
                // Escape quotes in the ID just in case to prevent CSS errors
                const safeId = currentQuestionId.replace(/"/g, '\\"');
                
                style.textContent = `
                    [id="${safeId}"] {
                        --fill-color: black !important;
                    }
                    [id="${safeId}"] [class^='hitbox-dot'] {
                        fill: black !important;
                    }
                `;
            } else {
                // Clear the style if there is no active question
                style.textContent = "";
            }
        } else {
            // Clear the style if the game isn't active
            style.textContent = "";
        }
 
    }, 150);
})();