Unlock Button (Weaboo)

Klik tombol "Unlock" otomatis setelah 10 detik

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         Unlock Button (Weaboo)
// @namespace    http://tampermonkey.net/
// @version      1.1
// @description  Klik tombol "Unlock" otomatis setelah 10 detik
// @author       weaboo
// @license      aanriski™ - ©weaboo
// @match        *://*/*
// @grant        GM_addStyle
// @run-at       document-start
// @grant        none
// ==/UserScript==

(function () {
    'use strict';

    function autoClickUnlock() {
        const btn = document.querySelector('button.btn.btn-primary.w-md');
        if (btn) {
            console.log('Tombol Unlock ditemukan! Menunggu 10 detik...');
            setTimeout(() => {
                console.log('Klik tombol Unlock sekarang!');
                btn.click();
            }, 10000); // 10000 ms = 10 detik
        } else {
            console.log('Tombol belum ditemukan, mencoba lagi...');
            setTimeout(autoClickUnlock, 1000); // ulang cek setiap 1 detik
        }
    }

    window.addEventListener('load', autoClickUnlock);
})();