muffin_mans Author

One suggestion I would add is putting some try {} catch {} blocks around the timers, so even if they change again in the future the script has a safe way to fall back to hard coded wait times.


Ok, final point of clarification for fellow devs. The HHTimers are gone, any other workarounds still work.

So Auto Troll and Auto Salary seem functional for now



Looks like they removed the timers completely. I'm out of time today to research, I'll try again later.





For what it is worth, I would consider the speed to be a feature, not a bug. The idea is to automate, if you need to supervise the results, you are better off not automating and just hand clicking.


I agree having targeted auto troll would be very useful, I simply don't have the knowledge/time to code that directly. Sorry :(


Hi,

I'm unable to reproduce your issue, can you let me know what browser you are running?



I've created a fork for now. I'll keep it up until the original gets another update.


Re: @twelve27:

Slightly unrelated question. Have you noticed the much faster session timeout? I haven't tried other browsers beyond Chrome, but I have noticed the timeout is now so fast that without an auto-refresh, the session often dies before another automatic action can trigger.


Re: @twelve27:
I don't think this fix was added explicitly to break scripts like the salary timer change, just seems to tweak page names to include language information. Perhaps more translations are coming?


Because the daily reward screen happens after the arena page is loaded, and the button detection isn't in the battle loop logic, there is no way for the script to break out of the battle loop after an arena battle daily reward is triggered.


I've been patching on sleazyfork.org, but this community seems closer to the author. Hello.


The page names changed. Here is a fast patch on code line 115

Change from

return ob.className.substr(5).toLocaleLowerCase();

To

return ob.className.substr(5).split(" ")[0].toLocaleLowerCase();