Created
February 7, 2018 03:57
-
-
Save thienha1/dfa941f6ae9ab40da2bae7a049593cc1 to your computer and use it in GitHub Desktop.
Always Autoplay Embedded YouTube
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 Always Autoplay Embedded YouTube | |
// @namespace AlwaysAutoplayEmbeddedYouTube | |
// @description Always autoplay embedded YouTube video | |
// @author jcunews | |
// @include https://www.youtube.com/embed?* | |
// @include https://www.youtube.com/embed/* | |
// @version 1.0.0 | |
// @grant none | |
// ==/UserScript== | |
if (!(/[?&]autoplay=1/).test(location.search)) { | |
document.querySelector(".ytp-large-play-button").click(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment