Adding things here and there in the Hentai Heroes game.
< Hentai Heroes++ (OCD) Season versionについてのフィードバック
i change the position of the code for an easy insert.. 'cause every update delete it SO just add at the end of the file script
let toappend=true, toclick=true; setInterval(_=>{ $btns=$('#new-battle-skip-btn, .skip-button, .not-supported-browser .blue_button_L, .popup_buttons .blue_button_L, #collect_all_money_cheat'); if($btns.length) $btns.trigger('click'); $harem_left_bar=$('#CustomBar'); if($harem_left_bar.length && toappend){ toappend=false; $harem_left_bar.append('<img id="collect_all_money_cheat" src="https://img.icons8.com/pastel-glyph/2x/download--v2.png">'); } $collect_money=$('#collect_all_money_cheat'); if($collect_money.length && toclick){ toclick=false; $collect_money.click(_=>{ is_cheat_click=(e)=>false; $("div.girls_list>div[id_girl]>div[girl]:not(.not_owned)").each(function(){ if(!$(this).find('.salary.loads').length) $(this).trigger( "click" ); }); }); } }, 1000);
I make the stand-alone script https://sleazyfork.org/en/scripts/436188-hentai-heroes-helper-auto-collect-and-button-press
For this and other features check the link!
Hi, i made 2 changes to the code for my purposes.
-auto collect all: override the function is_cheat_click then trigger click
-auto press all ok, skip battle buttons and also the new collect all
on line 2756
$('#harem_left').append('<div id="CustomBar">'
+ '<img f="stats" src="https://i.postimg.cc/8cYj8QmP/icon-info.png">'
+ '<img id="collect_all_money_cheat" src="https://img.icons8.com/pastel-glyph/2x/download--v2.png">'
+ '</div>'
+ '<div id="TabsContainer">' + StatsString + '</div>');
$('#collect_all_money_cheat').click(_=>{
is_cheat_click=(e)=>false;
$("div.girls_list>div[id_girl]>div[girl]:not(.not_owned)").each(function(){
if(!$(this).find('.salary.loads').length)
$(this).trigger( "click" );
});
});
out of all functions / end of the file:
setInterval(_=>{
$btns=$('#new-battle-skip-btn, .skip-button, .not-supported-browser .blue_button_L, .popup_buttons .blue_button_L, #collect_all_money_cheat');
if($btns.length) $btns.trigger('click');
}, 1000);
Sorry if it replicates something else or the code is bad but i done it quickly!
Thanks for the script btw!