Qobuz Button Fix

Fix the "Listen on Qobuz" button for open.qobuz.com links

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

You will need to install an extension such as Tampermonkey to install this script.

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

作者のサイトでサポートを受ける。または、このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name        Qobuz Button Fix
// @namespace   Violentmonkey Scripts
// @match       https://open.qobuz.com/*
// @grant       none
// @version     3-10-2026
// @author      Lioncat6
// @description Fix the "Listen on Qobuz" button for open.qobuz.com links
// @icon         https://www.google.com/s2/favicons?sz=64&domain=qobuz.com
// @homepageURL  https://github.com/Lioncat6/Misc-UserScripts
// @supportURL   https://github.com/Lioncat6/Misc-UserScripts/issues
// @license MIT
// ==/UserScript==

let patchRetry = undefined;

(function () {
    'use strict';
    patchRetry = setInterval(() => patchButton(), 100);
    const originalPushState = history.pushState;
    history.pushState = function () { //Watching for location changes, since open.qobuz.com is a react app
        originalPushState.apply(this, arguments);
        patchRetry = setInterval(() => patchButton(), 100);
    };
    window.addEventListener("popstate", (event) => { //Watching for the back/forward buttons being used
        patchRetry = setInterval(() => patchButton(), 100);
    });
})();



function patchButton() {
    console.log("Attempting to patch button")
    let listenButton = document.getElementsByClassName("pct-play")?.[0];
    if (listenButton) {
        listenButton.href = window.location.href.replace("open", "play")
        console.log(listenButton.href)
        clearInterval(patchRetry);
    }
}