🚑 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
|
// @namespace danielrayjones
|
||||||
// @description Plays Cookie Clicker for you
|
// @description Plays Cookie Clicker for you
|
||||||
// @include http://orteil.dashnet.org/cookieclicker/
|
// @include http://orteil.dashnet.org/cookieclicker/
|
||||||
// @version 0.0.2
|
// @version 0.0.3
|
||||||
// ==/UserScript==
|
// ==/UserScript==
|
||||||
|
|
||||||
let AutoClicker = {stop: false};
|
let AutoClicker = {stop: false};
|
||||||
unsafeWindow.AutoClicker = AutoClicker;
|
unsafeWindow.AutoClicker = AutoClicker;
|
||||||
|
|
||||||
document.addEventListener('load', function () {
|
window.addEventListener('load', function () {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
let cookie = document.getElementById('bigCookie');
|
let cookie = document.getElementById('bigCookie');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue