Created
August 17, 2012 08:40
-
-
Save oflow/3377080 to your computer and use it in GitHub Desktop.
ドットインストールとかいうサイトの動画を自動再生
This file contains 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 dotinstall auto play | |
// @description Youtube Player API使った(autoplay=1になってない)動画を自動再生のURLに置換する | |
// @include http://dotinstall.com/lessons/* | |
// ==/UserScript | |
/* 1クリックが面倒くさい… */ | |
window.addEventListener('load', function() { | |
var player = document.getElementById('youtube_api_player'); | |
if (player && player.src.indexOf('autoplay=1') == -1) player.src += '&autoplay=1'; | |
}, false); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment