var autoClick = setInterval(Game.ClickCookie, 4);

GoldenCookieClick = function () {
  if (Game.shimmers[0] != null) { 
    Game.shimmers[0].pop();
    setTimeout(GoldenCookieClick, 5);
  }
  else setTimeout(GoldenCookieClick, 1000);
}

GoldenCookieClick();

@@ -42,16 +42,48 @@
 kie, 4);
+     // autoclick the big cookie
 %0A%0AGolden
@@ -109,16 +109,62 @@
 ion () %7B
+                     // check for buff cookies
 %0A  if (G
@@ -218,16 +218,43 @@
 %5D.pop();
+                           
 %0A    set
@@ -283,16 +283,93 @@
 ick, 5);
+                 // if a cookie is found, check again in case of cookie storm
 %0A  %7D%0A  e

Update main.js