Created
June 9, 2010 12:19
-
-
Save miya2000/431389 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 myopera - stop autosave. | |
| // @include http://my.opera.com/*/blog/* | |
| // ==/UserScript== | |
| (function(){ | |
| var targets = [ | |
| 'http://static.myopera.com/community/js/site/blog/autosave-min.js' | |
| ]; | |
| window.opera.addEventListener('BeforeExternalScript', function(e) { | |
| var src = e.element.src; | |
| for (var i = 0, len = targets.length; i < len; i++) { | |
| if (src == targets[i]) { | |
| opera.postError('prevent external script: src[' + src + ']'); | |
| e.preventDefault(); | |
| break; | |
| } | |
| } | |
| },false); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment