🚑 Update cookie clicker to listen on window
This commit is contained in:
parent
a3699fb789
commit
69c85131f0
1 changed files with 2 additions and 2 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue