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

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

You will need to install an extension such as Tampermonkey to install this script.

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name         HaremHeroes XP for next level
// @version      1.2
// @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 refreshXp()
{
    var xpActuelle = Hero.infos.Xp.cur - Hero.infos.Xp.min;
    var xpObjectif = Hero.infos.Xp.max - Hero.infos.Xp.min;

    var divXpBarInfos = document.getElementsByClassName("over reversed_tooltip")[0];
    var spansXpBarInfos = divXpBarInfos.getElementsByTagName("span");
    spansXpBarInfos[0].innerHTML = xpActuelle;
    spansXpBarInfos[2].innerHTML = xpObjectif;
}

(function() {
    'use strict';

    refreshXp();

    setInterval(function() {
        refreshXp();
    }, 1000);
})();