BigGo 下次一定啦

下次一定

// ==UserScript==
// @name         BigGo 下次一定啦
// @version      1.4
// @description  下次一定
// @author       BaconEgg
// @match        https://biggo.com.tw/r/transfer_extension*
// @grant        none
// @namespace https://greasyfork.org/users/735944
// ==/UserScript==

(function() {
    'use strict';
    function clickButton() {
        document.querySelectorAll('a').forEach(button => {
            if (button.textContent.includes("下次一定")) {
                button.click();
            }
        });
    }
    window.addEventListener('load', () => {
        // Initial button click
        clickButton();
        setInterval(clickButton, 2000);
    });
})();