Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save cuylerstuwe/97a1396dbbd5d9022cd86d2868790906 to your computer and use it in GitHub Desktop.

Select an option

Save cuylerstuwe/97a1396dbbd5d9022cd86d2868790906 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name RVD Nina - Autoplay second audio.
// @namespace salembeats
// @version 1.1
// @description Autoplays the second audio when the first is done.
// @author Cuyler Stuwe (salembeats)
// @include *
// @grant none
// ==/UserScript==
if(!document.referrer.includes("3W718UE9DT45KHFDCXLXTUHZUJR8KX")) {return;}
new MutationObserver(mutations => {
for(let mutation of mutations) {
if(mutation.target.style.left.includes("97")) {
document.querySelector("#playerButton-player2").click();
}
}
}).observe(document.querySelector("#dot-player1"), {attributes: true});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment