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!

返信を投稿

返信を投稿するにはログインしてください。