Roukys / HHauto

GNU General Public License v3.0
45 stars 44 forks source link

Salary Bug [5.6.63] - Salary refuses to be collected in the other sites than Nutaku #479

Closed dadanda closed 2 years ago

dadanda commented 2 years ago

Fix by cossname :> @dadanda fast fix

change

const salaryToCollect = salaryButton.attr("style")==="display: inline-block;"?true:false;

to

const salaryToCollect = $("#collect_all_container button[id='collect_all']:not([disabled])").length > 0?true:false;

Describe the bug Salary doesn't collect on Comix Harem(.com) HH_DebugLog_1648122740192.log

Even when Min salary is set to 0.

userscript.html?name=HaremHeroes%20Automatic%2B%2B.user.js&id=78ba3ed4-9f54-4e53-abde-4a7a000dc377:271 3/24/2022, 7:55:51 PM.39:getSalary:Not enough salary to collect userscript.html?name=HaremHeroes%20Automatic%2B%2B.user.js&id=78ba3ed4-9f54-4e53-abde-4a7a000dc377:271 3/24/2022, 7:55:51 PM.40:setTimer:nextSalaryTime set to 19075:19:55:51 () userscript.html?name=HaremHeroes%20Automatic%2B%2B.user.js&id=78ba3ed4-9f54-4e53-abde-4a7a000dc377:271 3/24/2022, 7:55:51 PM.545:autoLoop:Time to fetch salary. userscript.html?name=HaremHeroes%20Automatic%2B%2B.user.js&id=78ba3ed4-9f54-4e53-abde-4a7a000dc377:271 3/24/2022, 7:55:51 PM.546:getSalary:Not enough salary to collect userscript.html?name=HaremHeroes%20Automatic%2B%2B.user.js&id=78ba3ed4-9f54-4e53-abde-4a7a000dc377:271 3/24/2022, 7:55:51 PM.547:setTimer:nextSalaryTime set to 19075:19:55:51 () userscript.html?name=HaremHeroes%20Automatic%2B%2B.user.js&id=78ba3ed4-9f54-4e53-abde-4a7a000dc377:271 3/24/2022, 7:55:52 PM.53:autoLoop:Time to fetch salary. userscript.html?name=HaremHeroes%20Automatic%2B%2B.user.js&id=78ba3ed4-9f54-4e53-abde-4a7a000dc377:271 3/24/2022, 7:55:52 PM.54:getSalary:Not enough salary to collect userscript.html?name=HaremHeroes%20Automatic%2B%2B.user.js&id=78ba3ed4-9f54-4e53-abde-4a7a000dc377:271 3/24/2022, 7:55:52 PM.55:setTimer:nextSalaryTime set to 19075:19:55:52 () userscript.html?name=HaremHeroes%20Automatic%2B%2B.user.js&id=78ba3ed4-9f54-4e53-abde-4a7a000dc377:271 3/24/2022, 7:55:52 PM.559:autoLoop:Time to fetch salary. userscript.html?name=HaremHeroes%20Automatic%2B%2B.user.js&id=78ba3ed4-9f54-4e53-abde-4a7a000dc377:271 3/24/2022, 7:55:52 PM.560:getSalary:Not enough salary to collect userscript.html?name=HaremHeroes%20Automatic%2B%2B.user.js&id=78ba3ed4-9f54-4e53-abde-4a7a000dc377:271 3/24/2022, 7:55:52 PM.562:setTimer:nextSalaryTime set to 19075:19:55:52 () userscript.html?name=HaremHeroes%20Automatic%2B%2B.user.js&id=78ba3ed4-9f54-4e53-abde-4a7a000dc377:271 3/24/2022, 7:55:53 PM.67:autoLoop:Time to fetch salary. userscript.html?name=HaremHeroes%20Automatic%2B%2B.user.js&id=78ba3ed4-9f54-4e53-abde-4a7a000dc377:271 3/24/2022, 7:55:53 PM.69:getSalary:Not enough salary to collect userscript.html?name=HaremHeroes%20Automatic%2B%2B.user.js&id=78ba3ed4-9f54-4e53-abde-4a7a000dc377:271 3/24/2022, 7:55:53 PM.71:setTimer:nextSalaryTime set to 19075:19:55:53 () userscript.html?name=HaremHeroes%20Automatic%2B%2B.user.js&id=78ba3ed4-9f54-4e53-abde-4a7a000dc377:271 3/24/2022, 7:55:53 PM.576:autoLoop:Time to fetch salary. userscript.html?name=HaremHeroes%20Automatic%2B%2B.user.js&id=78ba3ed4-9f54-4e53-abde-4a7a000dc377:271 3/24/2022, 7:55:53 PM.577:getSalary:Not enough salary to collect userscript.html?name=HaremHeroes%20Automatic%2B%2B.user.js&id=78ba3ed4-9f54-4e53-abde-4a7a000dc377:271 3/24/2022, 7:55:53 PM.578:setTimer:nextSalaryTime set to 19075:19:55:53 () userscript.html?name=HaremHeroes%20Automatic%2B%2B.user.js&id=78ba3ed4-9f54-4e53-abde-4a7a000dc377:271 |

NinJaraya commented 2 years ago

Only Nutaku and Test Server is working.

cossname commented 2 years ago

@dadanda fast fix

change

const salaryToCollect = salaryButton.attr("style")==="display: inline-block;"?true:false;

to

const salaryToCollect = $("#collect_all_container button[id='collect_all']:not([disabled])").length > 0?true:false;
JarekDerp commented 2 years ago

I have the same issue in hentaiheroes.com and changing that one line does fix it.

Franck-75 commented 2 years ago

Working fine.