update readme

This commit is contained in:
Michael Zhang 2024-07-27 16:35:01 -05:00
parent 184a6b6502
commit 54cac427a2
3 changed files with 15 additions and 8 deletions

View file

@ -1,5 +1,10 @@
# tweaks
## Features
- Add difficulty names to the beatmap icons
- More coming soon...
## Install
No distribution packages yet, please follow the development guide to use for now!

View file

@ -34,9 +34,13 @@ export async function beatmapPageHandler(m: RegExpMatchArray, path: OsuPath) {
])
beatmapMap.set(JSON.stringify([beatmap.id, beatmap.mode]), beatmap);
const beatmapPicker = await waitForElementToExist(
const beatmapPicker: HTMLDivElement = await waitForElementToExist(
".beatmapset-beatmap-picker",
);
// I think this makes it more readable
beatmapPicker.style.backdropFilter = "blur(10px)";
const beatmapPickerChildren: HTMLAnchorElement[] = Array.from(
beatmapPicker.children,
);
@ -47,6 +51,7 @@ export async function beatmapPageHandler(m: RegExpMatchArray, path: OsuPath) {
const correspondingBeatmap = beatmapMap.get(
JSON.stringify([targetBeatmapId, modeString]),
);
if (!correspondingBeatmap) continue;
// create the elements and add it to screen
const icon = child.children[0];

View file

@ -1,8 +1,5 @@
export async function userPageHandler(m, path) {
console.log("User page");
let currentUser = await wait(
() => unsafeWindow.currentUser,
(c) => !!c,
);
console.log(currentUser);
import type { OsuPath } from "../dom";
export async function userPageHandler(m: RegExpMatchArray, path: OsuPath) {
// Coming soon!
}