Skip to content

Instantly share code, notes, and snippets.

@miya2000
Last active August 29, 2015 14:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miya2000/f81cea0ed8424028c78f to your computer and use it in GitHub Desktop.
Save miya2000/f81cea0ed8424028c78f to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name tugino renkyu for Opera10.10
// @include http://misc.tokyoenvious.net/holidays/holidays.html
// ==/UserScript==
(function() {
if (parseFloat(opera.version()) >= 12) return;
if (!window.console) {
window.console = {
log : function log (e) { opera.postError(e) },
debug : function debug(e) { opera.postError(e) },
warn : function warn (e) { opera.postError(e) },
error : function error(e) { opera.postError(e) }
};
}
opera.addEventListener('BeforeScript', function(e) {
if (!e.element.src) {
e.element.text = e.element.text.replace('dataType: \'json\'', 'dataType: \'jsonp\'');
}
}, false);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment