Skip to content

Instantly share code, notes, and snippets.

Avatar

Jonathan Petitcolas jpetitcolas

View GitHub Profile
@RobinBressan
RobinBressan / digestBomb.js
Last active Apr 15, 2016
Angular $digest bomb. Like fork bomb but with $digest.
View digestBomb.js
function digestBomb() {
var $rootScope = angular.injector(['ng']).get('$rootScope');
function $digest() {
$rootScope.$$postDigest($digest);
$rootScope.$digest();
}
$digest();
}
@jeresig
jeresig / cookiebot.js
Last active Jan 18, 2021
Simple bot for CookieClicker: http://orteil.dashnet.org/cookieclicker/ How to use: Paste the following into the JavaScript console in your browser and run it. To start the bot type: "CookieClicker.start();" to stop it do: "CookieClicker.stop();" (or just reload the page).
View cookiebot.js
CookieClicker = {
start: function() {
this.clickInterval = setInterval(function(){
// Click the large cookie as fast as possible!
document.getElementById("bigCookie").click();
}, 1);
this.goldInterval = setInterval(function(){
// Click the golden cookie
var shimmer = document.getElementsByClassName("shimmer")[0];
You can’t perform that action at this time.