Helper for TheresMoreGame
Since v0.61, buildings you can't build don't have ".btn-off' class but '.btn-off-cap' class, so they are selected by getAllButtons(), thus the script tries to build them every time.
Need to fix line 661 withreturn [...document.querySelectorAll('#maintabs-container > div > div[role=tabpanel] button.btn.btn-dark:not(.btn-off):not(.btn-off-cap)')]
Other than that, very nice script.
I mean, "buildings you can't build because you don't have enough cap on resources"
Line 856, replace with'A moonlit night',
Since v0.61, buildings you can't build don't have ".btn-off' class but '.btn-off-cap' class, so they are selected by getAllButtons(), thus the script tries to build them every time.
Need to fix line 661 with
return [...document.querySelectorAll('#maintabs-container > div > div[role=tabpanel] button.btn.btn-dark:not(.btn-off):not(.btn-off-cap)')]
Other than that, very nice script.