Last active
August 29, 2015 14:07
-
-
Save miya2000/f81cea0ed8424028c78f to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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