cookie clicker give cookies code example

Example 1: cookie clicker

#Hacks:
# Type these in your console which you can open by 
# pressing STRG + SHIFT + J (Chrome) or STRG + SHIFT + K (Firefox)

	# changes the amount of cookies
	Game.cookies = amount in int
    
    # unlimted cookies
    Game.cookies = Infinity
    
    # If you want to get out of Infinity cookies
    Game.cookiesd = 0
    
    # set up the CookiesPerSecond Rate by the number you want
    Game.cookiesPS= amount in int
    
    # clicks on cookie forever without moving your mouse in the highest speed
	var autoclicker = setInterval(function() { Game.ClickCookie(); }, 10);
    
    # stoping autoclicker
    clearInterval(autoClicker)

	# clicks on golden cookie without moving your mouse
    setInterval(Game.goldenCookie.click, 500)
    
    # Get the achievement you want by changing it to the achievement name you want
    # Game.Win(‚ACHIEVEMENT‘)

Example 2: how to add cookie

To handle cookie in postman there is a button
called cookie to give us a way to add cookie
to certain domain by providing key+value pair
Once added any request sent to the same domain,
can access that cookie. We can also access to
the cookie in test tab.

pm.test('the "abc" cookie has correct value', function () {
    pm.expect(pm.cookies.toObject()).to.have.property('abc', 'AWESOME');
});

pm.test('the "Motto" cookie has correct value', function () {
    pm.expect(pm.cookies.toObject()).to.have.property('Motto', 'Hold your horse');

Tags:

Misc Example