Skip to content

Instantly share code, notes, and snippets.

@coryshaw1
Last active September 14, 2026 13:03
Show Gist options
  • Select an option

  • Save coryshaw1/c1c2e7aa00a0039d1057b8e2cda85e7b to your computer and use it in GitHub Desktop.

Select an option

Save coryshaw1/c1c2e7aa00a0039d1057b8e2cda85e7b to your computer and use it in GitHub Desktop.
Autorun Dub+ on queup.net
// ==UserScript==
// @name Dub+
// @namespace https://github.com/DubPlus/DubPlus/
// @description Autorun Dub+ on QueUp.net
// @author MBSURFER, CISCOG
// @include https://queup.net/*
// @version 5.0.0
// @grant none
// @run-at document-end
// ==/UserScript==
(function () {
setTimeout(function () {
var s = document.createElement('script');
s.type = 'text/javascript';
s.src = 'https://cdn.jsdelivr.net/gh/DubPlus/DubPlus/dubplus.min.js';
s.onerror = function () {
if (window.console && console.error) {
console.error('Dub+ could not be loaded.');
}
};
(document.body || document.head || document.documentElement).appendChild(s);
}, 1000);
}());
@FranciscoG

Copy link
Copy Markdown

You need to update this to: "https://cdn.jsdelivr.net/gh/DubPlus/DubPlus/dubplus.js"
we no longer have a minified build
Also we no longer use jQuery so you can remove the lines 9 through 11
new version: 4.0.0

// ==UserScript==
// @name           Dub+
// @namespace      https://github.com/DubPlus/DubPlus/
// @description    Autorun Dub+ on dubtrack.fm
// @author         MBSURFER, CISCOG
// @include        https://*.queup.net/*
// @version        4.0.0
// @grant          none
// ==/UserScript==

setTimeout(function(){ 
    $.getScript('https://cdn.jsdelivr.net/gh/DubPlus/DubPlus/dubplus.js');
}, 1000);

@FranciscoG

Copy link
Copy Markdown

if not having a minified build will break to many things, I can add one back in. we just need to remove it when we submit to the FF add-on and chrome webstore

@coryshaw1

Copy link
Copy Markdown
Author

Updated. Thanks!

@FranciscoG

FranciscoG commented Mar 24, 2025 •

Copy link
Copy Markdown

I did end up restoring the minified js file (dubplus.min.js) so that people who were already pointing to it wouldn't see things break 😄

@FranciscoG

Copy link
Copy Markdown

oops. I also just realized that you need jQuery in order to run that $.getScript

or you can just update it to vanilla JS:

setTimeout(function(){ 
    const s = document.createElement('script');
    s.src = "https://cdn.jsdelivr.net/gh/DubPlus/DubPlus/dubplus.js";
    document.appendChild(s);
}, 1000);

@coryshaw1

Copy link
Copy Markdown
Author

Updated to vanilla JS to remove jQuery dependency

@FranciscoG

Copy link
Copy Markdown

Sorry, I messed up. Last change I promise. it's document.body.appendChild(s);. <-- i forgot the body part.

@coryshaw1

Copy link
Copy Markdown
Author

Updated and confirmed working

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