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!

發表回覆

登入以回復