From 69c85131f095d99069b39736466cd3e0a1805e64 Mon Sep 17 00:00:00 2001 From: Dan Jones Date: Wed, 3 Oct 2018 08:26:09 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=20Update=20cookie=20clicker=20to?= =?UTF-8?q?=20listen=20on=20window?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cookie.clicker.user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cookie.clicker.user.js b/cookie.clicker.user.js index caf1625..c126745 100644 --- a/cookie.clicker.user.js +++ b/cookie.clicker.user.js @@ -3,13 +3,13 @@ // @namespace danielrayjones // @description Plays Cookie Clicker for you // @include http://orteil.dashnet.org/cookieclicker/ -// @version 0.0.2 +// @version 0.0.3 // ==/UserScript== let AutoClicker = {stop: false}; unsafeWindow.AutoClicker = AutoClicker; -document.addEventListener('load', function () { +window.addEventListener('load', function () { 'use strict'; let cookie = document.getElementById('bigCookie');