OsuProfileScoresTimeGraph

Adds graphing for which hours scores were set at

< 脚本OsuProfileScoresTimeGraph的反馈

评价:一般 - 脚本能用,但还有一些问题

§
发表于:2022-04-07
编辑于:2022-04-07

doesnt work with firefox, created a fix.

i made this function

function selfID() {
    let buttons = document.getElementsByClassName("simple-menu__item");

    for (let i = 0; i < buttons.length; i++) {
            if (buttons[i].href != null && buttons[i].href.includes("users")) {
                return  buttons[i].href.split("/").at(-1);
        }
    }
}

and then on line 154 instead of currentUser.id I call it. What it does is get all of the buttons and finds the one that is the "My Profile" button.

§
发表于:2022-04-07

edit: the return needs to be parsed as an Int parseInt(buttons[i].href.split("/").at(-1)); i forgot i made the check == rather than === later in the code while debugging

§
发表于:2024-01-16

Givo the goat, thank you!

发表回复

登录以发表回复。