Pokeclicker Automation

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

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

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

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name            Pokeclicker Automation
// @name:fr         Pokeclicker Automation
// @namespace       https://github.com/Farigh/pokeclicker-automation/
// @version         0.1.5
// @description     Automation for pokeclicker.com | Auto click | Auto quests | Auto achivements | Auto mine | Auto farm | Auto hatch | and more ...
// @description:fr  Automatisation pour pokeclicker.com  | Click auto | Quests auto | Achievements auto | Minage auto | Culture auto | Couveuse auto |et plus encore ...
// @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";

// Set this to true if you want no feature to be enabled by default
var disableFeaturesByDefault = false;

// Set this to true if you want no setting to be enabled by default
var disableSettingsByDefault = false;

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, disableFeaturesByDefault, disableSettingsByDefault);
        }
    }

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