HentaiVerse Monster Database UserScript API - v2.1.1
    Preparing search index...

    Function inBattle

    • Although Monster Database script have tried best to be compatible with Monsterbation's ajaxRound feature, in order to workaround TamperMonkey on Firefox cross userscript sandbox event handler issue (one userscript can't recevied a document Event event from another one), a fallback API is provided. There is no need to worry about if "inBattle" will be called serveral time as it has a built-in race condition mitigation approach.

      window.HVMonsterDB?.inBattle();

      // If your prefer ES5 approach (no optional chain)
      if (window.HVMonsterDB && window.HVMonsterDB.inBattle) {
      window.HVMonsterDB.inBattle();
      }

      Returns void