eileen12 / HaremHeroes Automatic

Not sure if it just me, but when I open anything in new tab (using Middle Click), after it finish loading it just go straight to: https://www.hentaiheroes.com/map.html

After that I can go to any page without issue.

Disabling the Script stop this issue. It would seem that the script was design to be like that? Console logs as follow:

Need world map NOW...
Setting Defaults.

Edit: Did a test, removing these will stop that issue, not sure how much of the script it will break though.

var start = function () {
  //console.log("script started");
  // get world map
  try {
    globalWorldMap = new Map(JSON.parse(sessionStorage.globalWorldMap));
    if (!(globalWorldMap instanceof Map) || globalWorldMap.size < 1) throw false;
  }
  catch (e) {
    console.log("Need world map NOW...");
    if (!getUnlockedWorlds()) {
      sessionStorage.userLink = window.location.href;
      return;
    }
  }

That is for the auto troll battle system. Basically there just isn't a line of code to send it back to home.