Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- setInterval(function(){
- Game.ObjectsById[0].buy();
- Game.ObjectsById[1].buy();
- Game.ObjectsById[2].buy();
- Game.ObjectsById[3].buy();
- Game.ObjectsById[4].buy();
- Game.ObjectsById[5].buy();
- Game.ObjectsById[6].buy();
- Game.ObjectsById[7].buy();
- Game.ObjectsById[8].buy();
- Game.ObjectsById[9].buy();
- },1)
- setInterval(function(){
- Game.ClickCookie();
- },1)
- setInterval(function() {
- Game.goldenCookie.click();
- }, 100);
- if (window.webkitNotifications.checkPermission()) {
- function askPermission() {
- window.webkitNotifications.requestPermission();
- var element = document.getElementById('notifier_permission');
- element.parentNode.removeChild(element);
- }
- var ask = document.createElement('BUTTON');
- var askText = document.createTextNode('Ask for notification permission');
- ask.id = 'notifier_permission';
- ask.style.position = 'absolute';
- ask.style.zIndex = 99999999;
- ask.appendChild(askText);
- document.body.appendChild(ask);
- ask.onclick = askPermission;
- }
- Game.goldenCookie.spawn = (function() {
- var spawn = Game.goldenCookie.spawn;
- return function() {
- webkitNotifications.createNotification('img/goldCookie.png', 'Cookie Clicker', 'A wild golden cookie appeared!').show();
- spawn();
- };
- })();
Advertisement
Add Comment
Please, Sign In to add comment