Sleazy Fork is available in English.

HaremHeroes XP for next level

Instead of showing the total XP recquiered on the XP bar, it only show the XP for the current level

2018-09-25 일자. 최신 버전을 확인하세요.

질문, 리뷰하거나, 이 스크립트를 신고하세요.
// ==UserScript==
// @name         HaremHeroes XP for next level
// @version      1.0
// @description  Instead of showing the total XP recquiered on the XP bar, it only show the XP for the current level
// @author       Spychopat
// @match        http*://nutaku.haremheroes.com/*
// @match        http*://*.hentaiheroes.com/*
// @namespace JDscripts
// ==/UserScript==

function getHero()
{
    if(unsafeWindow.Hero === undefined)
    {
        setTimeout(autoLoop, Number(sessionStorage.autoLoopTimeMili))
        //console.log(window.wrappedJSObject)
    }
    return unsafeWindow.Hero;
}

(function() {
    'use strict';

    var xpActuelle = getHero().infos.Xp.cur - Hero.infos.Xp.min;
    var xpObjectif = getHero().infos.Xp.max - Hero.infos.Xp.min;
    //console.log("XP : " + xpActuelle + "/" + xpObjectif);
    var divXpBarInfos = document.getElementsByClassName("over reversed_tooltip")[0];
    //console.log(divXpBarInfos);
    var spansXpBarInfos = divXpBarInfos.getElementsByTagName("span");
    //console.log(spansXpBarInfos);
    spansXpBarInfos[0].innerHTML = xpActuelle;
    spansXpBarInfos[2].innerHTML = xpObjectif;
    //console.log(divXpBarInfos);
})();