world-geography-games.com | flag game auto anwser

Auto Complete flag game

当前为 2025-10-02 提交的版本,查看 最新版本

// ==UserScript==
// @name         world-geography-games.com | flag game auto anwser
// @namespace    http://tampermonkey.net/
// @version      1.3
// @description  Auto Complete flag game
// @author       OmniSec
// @match        https://world-geography-games.com/en/*
// @icon         https://static.vecteezy.com/system/resources/previews/013/894/451/non_2x/united-states-flag-symbol-free-png.png
// @grant        none
// @license      MIT
// ==/UserScript==

function autoPlayFlagQuiz() {
    if (typeof buttons !== "undefined" && typeof correct_answer !== "undefined") {
        // Click the correct answer
        buttons.forEach(function(btn){
            if (btn.name === correct_answer && can_tap === true) {
                tap_country(btn);
            }
        });

        // Click the "Next" button if it’s enabled
        if (button_next && button_next.inputEnabled) {
            next_flag();
        }
    }
}

// Run every 500ms
autoPlayInterval = setInterval(autoPlayFlagQuiz, 500);