// ==UserScript== // @name osu! Remove Classic (CL) Mod from Top Plays // @namespace https://osu.ppy.sh/users/ // @version 1.2 // @description Removes the Classic (CL) mod from top plays on osu! user profiles // @author MrTerror // @match https://osu.ppy.sh/users/* // @grant none // @run-at document-end // @downloadURL none // ==/UserScript== (function () { 'use strict'; function removeClassicMod() { const classicMods = document.querySelectorAll('.mod--CL'); classicMods.forEach(mod => mod.remove()); } removeClassicMod(); const observer = new MutationObserver(() => { removeClassicMod(); }); observer.observe(document.body, { childList: true, subtree: true }); window.addEventListener('popstate', () => { // Small delay to ensure DOM is fully loaded after navigation setTimeout(removeClassicMod, 100); }); })();