update readme
This commit is contained in:
parent
184a6b6502
commit
54cac427a2
3 changed files with 15 additions and 8 deletions
|
@ -1,5 +1,10 @@
|
||||||
# tweaks
|
# tweaks
|
||||||
|
|
||||||
|
## Features
|
||||||
|
|
||||||
|
- Add difficulty names to the beatmap icons
|
||||||
|
- More coming soon...
|
||||||
|
|
||||||
## Install
|
## Install
|
||||||
|
|
||||||
No distribution packages yet, please follow the development guide to use for now!
|
No distribution packages yet, please follow the development guide to use for now!
|
||||||
|
|
|
@ -34,9 +34,13 @@ export async function beatmapPageHandler(m: RegExpMatchArray, path: OsuPath) {
|
||||||
])
|
])
|
||||||
beatmapMap.set(JSON.stringify([beatmap.id, beatmap.mode]), beatmap);
|
beatmapMap.set(JSON.stringify([beatmap.id, beatmap.mode]), beatmap);
|
||||||
|
|
||||||
const beatmapPicker = await waitForElementToExist(
|
const beatmapPicker: HTMLDivElement = await waitForElementToExist(
|
||||||
".beatmapset-beatmap-picker",
|
".beatmapset-beatmap-picker",
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// I think this makes it more readable
|
||||||
|
beatmapPicker.style.backdropFilter = "blur(10px)";
|
||||||
|
|
||||||
const beatmapPickerChildren: HTMLAnchorElement[] = Array.from(
|
const beatmapPickerChildren: HTMLAnchorElement[] = Array.from(
|
||||||
beatmapPicker.children,
|
beatmapPicker.children,
|
||||||
);
|
);
|
||||||
|
@ -47,6 +51,7 @@ export async function beatmapPageHandler(m: RegExpMatchArray, path: OsuPath) {
|
||||||
const correspondingBeatmap = beatmapMap.get(
|
const correspondingBeatmap = beatmapMap.get(
|
||||||
JSON.stringify([targetBeatmapId, modeString]),
|
JSON.stringify([targetBeatmapId, modeString]),
|
||||||
);
|
);
|
||||||
|
if (!correspondingBeatmap) continue;
|
||||||
|
|
||||||
// create the elements and add it to screen
|
// create the elements and add it to screen
|
||||||
const icon = child.children[0];
|
const icon = child.children[0];
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
export async function userPageHandler(m, path) {
|
import type { OsuPath } from "../dom";
|
||||||
console.log("User page");
|
|
||||||
let currentUser = await wait(
|
export async function userPageHandler(m: RegExpMatchArray, path: OsuPath) {
|
||||||
() => unsafeWindow.currentUser,
|
// Coming soon!
|
||||||
(c) => !!c,
|
|
||||||
);
|
|
||||||
console.log(currentUser);
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue