Greasy Fork is available in English.

osu! 自动过滤 Std 模式谱面

自动将谱面过滤模式设为仅显示 Std 模式

// ==UserScript==
// @name         osu! 自动过滤 Std 模式谱面
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  自动将谱面过滤模式设为仅显示 Std 模式
// @author       solstice23
// @match        https://osu.ppy.sh/*
// @icon         https://osu.ppy.sh/favicon.ico
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    function modifyLink(){
        Array.from(document.querySelectorAll("a[href='https://osu.ppy.sh/beatmapsets']")).map(function (node){
            node.href += "?m=0";
        })
    }
    modifyLink();
    new MutationObserver(function(mutations, observer){
        modifyLink();
    })
        .observe(document.querySelector("body"), {
        'childList': true
    });
})();