setInterval(function(){ $("a").click() }, 100)
(Edit: Yes, this leads you through a very fast, very bad life. Play manually and have a better life.) setInterval(function(){ $("a").click() }, 100)
(Edit: Yes, this leads you through a very fast, very bad life. Play manually and have a better life.)Also, I noticed that something compounded to solve if you had more of them, notably stress. When you only had 1, it was instantaneous to solve. If you had more than one, the percent counter took time
I don't think it does.
Here's the relevant part of the (dart2js'd but slightly cleaned-up) code:
https://gist.github.com/CyberShadow/11329584
Edit: I made a full graph of the entire game: https://news.ycombinator.com/item?id=7652770
setInterval(function({[].slice.call(document.querySelectorAll("a")).forEach(function(a){a.click()})},100)
It feels great to know there are some more people who think of automating first, a better life second =)
setInterval(function(){ $("a").click() }, 1000)
leads to a very long life.Since "You need to learn." is at the bottom of task list, with 1s delay it never gets attention, so you don't learn, so you don't age.
Here's what I've got:
You have:
Hope
Body
Life
Love
309 Memory
Integrity
Job
180 Experience
53 Friend
4 Respect
216 Stuff
102 Broken Heart
6 Stress
Knowledge
Lover
You are troubled. [Can't afford] -Integrity -Lost Ambitioni am also thinking about writing some ifs into it that allow you to focus on "friends", "happy buddha", "people person", "wisdom", "early death" and maybe some other criteria, but that needs user interface and more time, which i dont have today ;)
Hmm...
fireEvent = function(element){
var event; // The custom event that will be created
if (document.createEvent) {
event = document.createEvent("HTMLEvents");
event.initEvent("click", true, true);
} else {
event = document.createEventObject();
event.eventType = "click";
}
event.eventName = "name-of-custom-event";
if (document.createEvent) {
element.dispatchEvent(event);
} else {
element.fireEvent("on" + event.eventType, event);
}
}
setInterval(function(){
Array.prototype.forEach.call(document.querySelectorAll('a'),function(d){
fireEvent(d);
})
}, 1000);A less efficient but shorter way is:
var interval = setInterval(function(){
var links = document.querySelectorAll('#problems a');
for(var z =0; z< links.length; z++) {
$('#'+links[z].id).click();
}
}, 1000);
Also he never called him stupid he simply informed him that it didn't work.A quick fix would be setInterval(function(){ $("a") && $("a").click() }, 100)
[0] https://developers.google.com/chrome-developer-tools/docs/co...
window.setInterval(function(){ Array.prototype.forEach.call(document.querySelectorAll('a'),function(i) {i.dispatchEvent(event)})},1000);