Created
July 12, 2009 03:22
-
-
Save miya2000/145502 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 nicovideo - fix restorePlayer for Opera10. | |
// @author miya2000 | |
// @namespace http://d.hatena.ne.jp/miya2000/ | |
// @include http://www.nicovideo.jp/watch/* | |
// @exclude http://*http* | |
// ==/UserScript== | |
javascript:(function F() { | |
if (Element.scrollTo) { | |
var org_scrollTo = Element.scrollTo; | |
Element.scrollTo = function() { var args = arguments; setTimeout(function() { org_scrollTo.apply(this, args) }, 0.01); }; | |
} | |
else { | |
window.addEventListener('load', F, false); | |
} | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment