Pokeclicker AutoCatch

Automatically catch Pokémon in Pokeclicker

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         Pokeclicker AutoCatch
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Automatically catch Pokémon in Pokeclicker
// @author       You
// @match        https://example.com/*  // Replace with the URL of the Pokeclicker game
// @license      MIT
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Set the number of times to catch Pokémon
    var numCatches = 1000;

    // Set the delay between each catch (in milliseconds)
    var catchDelay = 0;

    // Find the catch button element
    var catchButton = document.getElementById('catch-button'); // Replace 'catch-button' with the ID or class of the catch button element

    // Main function to catch Pokémon
    function autoCatch() {
        for (var i = 0; i < numCatches; i++) {
            catchButton.click();

            // Add a delay between catches if necessary
            if (catchDelay > 0) {
                setTimeout(function() {}, catchDelay);
            }

            console.log("Caught Pokémon " + (i + 1) + "/" + numCatches);
        }
    }

    // Call the autoCatch function when the page has finished loading
    window.onload = function() {
        autoCatch();
    };

})();