Removes the alert banner and icon from osu pages
目前為
// ==UserScript==
// @name Remove alert banner/icon
// @namespace osu
// @version 1.0.0
// @description Removes the alert banner and icon from osu pages
// @author Magnus Cosmos
// @match https://osu.ppy.sh/*
// @match https://lazer.ppy.sh/*
// @require https://greasyfork.org/scripts/473977-osu-web/code/osu-web.js?version=1241422
// @run-at document-start
// ==/UserScript==
const osu = new OsuWeb(function (body) {
loaded(".osu-page--notification-banners", body, (notifBanners) => {
notifBanners.innerHTML = "";
});
loaded(".nav2-header", body, (nav2Header) => {
loaded(".avatar--restricted", nav2Header, (avatarRestricted) => {
avatarRestricted.classList.remove("avatar--restricted");
}, { childList: true, subtree: true });
});
});