AutoClicker for Cookie Clicker

A simple script for cookie clicker that will autoclick cookies for you

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         AutoClicker for Cookie Clicker
// @namespace    http://tampermonkey.net/
// @license      [email protected]
// @version      0.0.1
// @description  A simple script for cookie clicker that will autoclick cookies for you
// @author       You
// @match        http://sunset-nova-group.glitch.me/
// @match        https://orteil.dashnet.org/cookieclicker/
// @match        https://eli-schwartz.github.io/cookieclicker/
// @match        https://cookieclickercity.com/
// @match        https://sites.google.com/site/unblockedgames66ez/cookie-clicker
// @match        https://trixter9994.github.io/Cookie-Clicker-Source-Code/
// @match        https://www.tynker.com/community/projects/play/cookie-clicker-2/59a2f5655ae0295c7e8b4582/
// @match        https://watchdocumentaries.com/cookie-clicker-game/
// @icon         https://www.google.com/s2/favicons?sz=64&domain=google.com
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    var autoclicker = setInterval(function(){
  try {
    Game.lastClick -= 1000;
    document.getElementById('bigCookie').click();
  } catch (err) {
    console.error('Stopping auto clicker');
    clearInterval(autoclicker);
  }
}, 1);
    //Turn off the autoclicker
    onkeydown = function(e) {
        clearInterval(autoclicker);
    }
})();