Last active
October 29, 2025 16:43
-
-
Save ReedGraf/8fc1024042fd2a2bd572ba82eb7dcbd9 to your computer and use it in GitHub Desktop.
Auto Resume Qobuz Playback
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==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'); }); |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Update: This recently stopped working with a more recent update that changes how Qobuz handles multiple players.