Skip to content

Instantly share code, notes, and snippets.

@miya2000
Created July 12, 2009 03:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miya2000/145502 to your computer and use it in GitHub Desktop.
Save miya2000/145502 to your computer and use it in GitHub Desktop.
// ==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