您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Simple userscript that will self-mutual you. (Client only)
// ==UserScript== // @name Fake self-mutual // @namespace https://github.com/yorunoken/fake-mutual-osu // @version 2025-01-21 // @description Simple userscript that will self-mutual you. (Client only) // @author yorunoken // @match https://osu.ppy.sh/users/* // @icon https://www.google.com/s2/favicons?sz=64&domain=ppy.sh // @grant none // ==/UserScript== const fireOnHashChangesToo = true; setInterval(function () { if (this.lastPathStr !== location.pathname || this.lastQueryStr !== location.search || (fireOnHashChangesToo && this.lastHashStr !== location.hash)) { this.lastPathStr = location.pathname; this.lastQueryStr = location.search; this.lastHashStr = location.hash; gmMain(); } }, 111); function gmMain() { if (!location.href.startsWith("https://osu.ppy.sh/users/")) { return false; } const userActionButton = document.querySelector(".user-action-button"); if (userActionButton) { userActionButton.classList.add("user-action-button--mutual"); } else { console.log("User action button not found, aborting."); } }