Pokeclicker Automation

Automation for pokeclicker.com | Auto click | Auto quests | Auto mine | Auto farm | Auto hatch

目前為 2022-06-04 提交的版本,檢視 最新版本

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name            Pokeclicker Automation
// @name:fr         Pokeclicker Automation
// @namespace       https://github.com/Farigh/pokeclicker-automation/
// @version         0.1.1
// @description     Automation for pokeclicker.com | Auto click | Auto quests | Auto mine | Auto farm | Auto hatch
// @description:fr  Automatisation pour pokeclicker.com  | Click auto | Quests auto | Minage auto | Culture auto | Couveuse auto
// @author          GARCIN David
// @match           https://www.pokeclicker.com
// @icon            https://www.google.com/s2/favicons?sz=64&domain=pokeclicker.com
// @license         GPL-v2
// @grant           none
// ==/UserScript==

// By default, the script is set to take the latest version available
// It could be preferable to set this to a label or a commit instead,
// if you want to fix a set version of the script
var releaseLabel = "master";

var pokeclickerAutomationReleaseUrl = "https://raw.githubusercontent.com/Farigh/pokeclicker-automation/" + releaseLabel + "/";

// Github only serves plain-text so we can't load it as a script object directly
let xmlhttp = new XMLHttpRequest();
xmlhttp.onreadystatechange = function()
    {
        if ((xmlhttp.readyState == 4) && (xmlhttp.status == 200))
        {
            // Store the content into a script div
            var script = document.createElement('script');
            script.innerHTML = xmlhttp.responseText;
            script.id = "pokeclicker-automation-component-loader";
            document.head.appendChild(script);

            AutomationComponentLoader.loadFromUrl(pokeclickerAutomationReleaseUrl);
        }
    }

// Download the content
xmlhttp.open("GET", pokeclickerAutomationReleaseUrl + "src/ComponentLoader.js", true);
xmlhttp.send();