Skip to content

Instantly share code, notes, and snippets.

@miya2000
Last active December 16, 2015 09:59
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miya2000/5416969 to your computer and use it in GitHub Desktop.
Save miya2000/5416969 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name jQuery2.0.0 for Opera10.10
// @include *
// ==/UserScript==
(function() {
if (typeof Date.now == 'undefined') {
Date.now = function() { return new Date() };
}
if (typeof Array.isArray == 'undefined') {
// https://developer.mozilla.org/ja/docs/JavaScript/Reference/Global_Objects/Array/isArray
Array.isArray = function(vArg) { return Object.prototype.toString.call(vArg) === "[object Array]"; };
}
if (typeof Object.defineProperty == 'undefined') {
Object.defineProperty = function() {};
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment