firebug - edit javascript on the fly -


i curious how might go editing variable on fly, since whenever try nothing happens. take http://nyan.cat example. tried edit seconds variable, nothing happened - why?

i used (in js console) seconds = 9001; ret , nothing happens....

that's because in http://nyan.cat/ seconds variable being set script repeatedly, based on starttime date object. in specific case of http://nyan.cat/, 'hack' time, change starttime.

example: increase seconds 1234567 seconds:

starttime = new date(((+starttime/1000)-1234567)*1000); 

Comments