Adding things here and there in the Hentai Heroes game.
< Opiniones de Hentai Heroes++ (OCD) Season version
I have been noticing this too. Its not a huge deal but a removal of the second link would be a nice visual change and won't slide some stuff on the page a little too low
It's strange because I don't have this issue on my side. I only have 1 wiki link on the page of the girls I already own.
It is caused by running HH++ and https://greasyfork.org/en/scripts/402066-hentai-heroes-image-viewer together
Yes, it is caused by two scripts running together and connected events. Currently both scripts has selecting girl bound to click event, which updates display.
This script also runs update function each time harem page is loaded. Mine, when harem page is loaded, simply triggers click event on active girl.
This way, update function from this script is run twice, and since there's no checking for elements existence, wiki link is added twice.
To fix this, I would suggest:
Line numbers as for version 0.28.8
Line 3022:
setTimeout(function () {
$("#harem_left div.girls_list div[girl].opened").click();
}, 0);
Lines 3033 to 3056:
if ($('#hh_comix').length == 0) {
if ($(this).find('.middle_part .WikiLink h3').length == 0) {
--keep old code here--
} else {
var newHref = '';
if (HH_UNIVERSE == 'gay') {
newHref = 'https://harem-battle.club/wiki/Gay-Harem/GH:' + girlName;
}
else if (lang == 'fr') {
newHref = 'http://hentaiheroes.wikidot.com/' + girlName;
}
else {
newHref = 'https://harem-battle.club/wiki/Harem-Heroes/HH:' + girlName;
}
$(this).find('.middle_part .WikiLink a').attr('href', newHref);
}
}
This way, your link is added if there is no mine script running, and if there are my changes (link as girl name), your link changes (lang etc) are injected it mine and your actual link is hidden.
Let me no if you're gonna use any of. ;)
will this be added?
Ty @Tom208
i really appreciate it ♥
the two wiki aren't needed because u can klick on the name for the wiki page...
and i always need to remove this from the script on line 2996
"if ($('#hh_comix').length == 0) {
if (!girl.own) {
if (HH_UNIVERSE == 'gay') {
$(this).find('p').after('
');
}
else if (lang == 'fr') {
$(this).find('p').after('
');
}
else {
$(this).find('p').after('
');
}
}
if (girl.own) {
if (HH_UNIVERSE == 'gay') {
$(this).find('h3').after('
');
}
else if (lang == 'fr') {
$(this).find('h3').after('
');
}
else {
$(this).find('h3').after('
');
}
}
}"
and it looks much cleaner without this 2 links