Skip to content

Instantly share code, notes, and snippets.

@ReedGraf
Last active October 29, 2025 16:43
Show Gist options
  • Select an option

  • Save ReedGraf/8fc1024042fd2a2bd572ba82eb7dcbd9 to your computer and use it in GitHub Desktop.

Select an option

Save ReedGraf/8fc1024042fd2a2bd572ba82eb7dcbd9 to your computer and use it in GitHub Desktop.
Auto Resume Qobuz Playback
// ==UserScript==
// @name Qobuz Playback Hog
// @namespace reed.script
// @match *://play.qobuz.com/*
// @grant none
// @version 1.1
// @author Reed Graf
// @description Instantly presses resume playback button.
// @homepageURL https://gist.github.com/ReedGraf/8fc1024042fd2a2bd572ba82eb7dcbd9
// @downloadURL https://gist.github.com/ReedGraf/8fc1024042fd2a2bd572ba82eb7dcbd9/raw/playbackhog.user.js
// @icon https://play.qobuz.com/resources/favicon/favicon-96x96.png
// @run-at document-start
// ==/UserScript==
function autoClick(selector) {
const observer = new MutationObserver(mutations => {
mutations.forEach(mutation => {
mutation.addedNodes.forEach(node => {
if (node.nodeType === 1) { // Check that it's an element node
node.querySelectorAll(selector).forEach(elm => {
console.info('Button detected and clicked:', elm);
elm.click();
});
}
});
});
});
observer.observe(document.body, {
childList: true,
subtree: true
});
console.info("Waiting for button");
}
// Run once page is loaded
document.addEventListener("DOMContentLoaded", () => { autoClick('span.bt3.c2.pct.pct-play'); });
@ReedGraf
Copy link
Author

I'm not sure how this gist will be received. 😬
Regardless, here's the code.

@ReedGraf
Copy link
Author

V1.1 - A quick update to the CSS selector.

Notes: I updated the CSS selector to avoid clicking other buttons, which was fixed by making the selector more specific. I found this issue when trying to open a three-dot menu on the right-hand side of a track, and it wouldn't open because this script was automatically clicking it.

@ReedGraf
Copy link
Author

ReedGraf commented Oct 29, 2025

Update: This recently stopped working with a more recent update that changes how Qobuz handles multiple players.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment