您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Spoofs a mobile user agent to trick YouTube Music into using the Opus audio codec if the song is not available in 256kbps AAC (High Quality), since desktop YouTube Music seems to be unable to play in Opus codec always defaults to AAC.
// ==UserScript== // @name YouTube Music Opus Codec // @icon https://www.youtube.com/img/favicon_48.png // @author ElectroKnight22 // @namespace electroknight22_youtube_music_opus_codec_namespace // @version 2.0.0 // @match *://music.youtube.com/* // @grant none // @license MIT // @description Spoofs a mobile user agent to trick YouTube Music into using the Opus audio codec if the song is not available in 256kbps AAC (High Quality), since desktop YouTube Music seems to be unable to play in Opus codec always defaults to AAC. // ==/UserScript== /*jshint esversion: 11 */ (function () { "use strict"; const mobileUA = "Mozilla/5.0 (iPhone; CPU iPhone OS 14_0 like Mac OS X)..."; Object.defineProperty(navigator, "userAgent", { get: function () { return mobileUA; } }); Object.defineProperty(navigator, "platform", { get: function () { return "iPhone"; } }); Object.defineProperty(navigator, "maxTouchPoints", { get: function () { return 1; } }); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址