Skip to content

Instantly share code, notes, and snippets.

@javascripter
Created October 23, 2008 17:35
Show Gist options
  • Save javascripter/19117 to your computer and use it in GitHub Desktop.
Save javascripter/19117 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name NicoVideoAutoPlay
// @namespace http://d.hatena.ne.jp/javascripter/
// @include http://www.nicovideo.jp/watch/*
// ==/UserScript==
location.href = "javascript:" + function () {
var flvplayer = document.getElementById("flvplayer");
(function play() {
try {
if (flvplayer.ext_getStatus() == "paused")
flvplayer.ext_play(1);
else
setTimeout(play, 500);
} catch(error) {
setTimeout(play, 500);
}
})();
}.toSource() + "();";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment