Pokeclicker Automation

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

  1. // ==UserScript==
  2. // @name Pokeclicker Automation
  3. // @name:fr Pokeclicker Automation
  4. // @namespace https://github.com/Farigh/pokeclicker-automation/
  5. // @version 0.1.5
  6. // @description Automation for pokeclicker.com | Auto click | Auto quests | Auto achivements | Auto mine | Auto farm | Auto hatch | and more ...
  7. // @description:fr Automatisation pour pokeclicker.com | Click auto | Quests auto | Achievements auto | Minage auto | Culture auto | Couveuse auto |et plus encore ...
  8. // @author GARCIN David
  9. // @match https://www.pokeclicker.com
  10. // @icon https://www.google.com/s2/favicons?sz=64&domain=pokeclicker.com
  11. // @license GPL-v2
  12. // @grant none
  13. // ==/UserScript==
  14.  
  15. // By default, the script is set to take the latest version available
  16. // It could be preferable to set this to a label or a commit instead,
  17. // if you want to fix a set version of the script
  18. var releaseLabel = "master";
  19.  
  20. // Set this to true if you want no feature to be enabled by default
  21. var disableFeaturesByDefault = false;
  22.  
  23. // Set this to true if you want no setting to be enabled by default
  24. var disableSettingsByDefault = false;
  25.  
  26. var pokeclickerAutomationReleaseUrl = "https://raw.githubusercontent.com/Farigh/pokeclicker-automation/" + releaseLabel + "/";
  27.  
  28. // Github only serves plain-text so we can't load it as a script object directly
  29. let xmlhttp = new XMLHttpRequest();
  30. xmlhttp.onreadystatechange = function()
  31. {
  32. if ((xmlhttp.readyState == 4) && (xmlhttp.status == 200))
  33. {
  34. // Store the content into a script div
  35. var script = document.createElement('script');
  36. script.innerHTML = xmlhttp.responseText;
  37. script.id = "pokeclicker-automation-component-loader";
  38. document.head.appendChild(script);
  39.  
  40. AutomationComponentLoader.loadFromUrl(pokeclickerAutomationReleaseUrl, disableFeaturesByDefault, disableSettingsByDefault);
  41. }
  42. }
  43.  
  44. // Download the content
  45. xmlhttp.open("GET", pokeclickerAutomationReleaseUrl + "src/ComponentLoader.js", true);
  46. xmlhttp.send();