您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Redirect Apple Music URLs to the Apple Music Windows app.
// ==UserScript== // @name Redirect Apple Music to Windows App // @namespace https://tampermonkey.net/ // @version 1.12 // @description Redirect Apple Music URLs to the Apple Music Windows app. // @author BunCat09 // @icon https://music.apple.com/assets/favicon/favicon-180.png // @match https://music.apple.com/* // @grant none // ==/UserScript== (function() { 'use strict'; // Redirect Apple Music URLs to the Apple Music app const url = window.location.href; const appUrl = url.replace("https://music.apple.com", "music://music.apple.com"); // Launch the app window.location.href = appUrl; // Close the browser tab setTimeout(() => { window.close(); }, 1000); // Wait for redirection to ensure the app launches })();