Created
April 30, 2018 19:58
-
-
Save cuylerstuwe/97a1396dbbd5d9022cd86d2868790906 to your computer and use it in GitHub Desktop.
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 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