Created
March 22, 2012 08:59
-
-
Save XP1/2157236 to your computer and use it in GitHub Desktop.
Fix Ace: Fixes Ace's "attachEvent" feature detection in Opera.
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 Fix Ace | |
// @version 1.00 | |
// @description Fixes Ace's "attachEvent" feature detection in Opera. | |
// @author XP1 (https://github.com/XP1/) | |
// @namespace https://gist.github.com/2157236/ | |
// @include http*://udacity.com/* | |
// @include http*://*.udacity.com/* | |
// ==/UserScript== | |
/*jslint browser: true, vars: true, white: true, maxerr: 50, indent: 4 */ | |
(function (HTMLTextAreaElement) | |
{ | |
"use strict"; | |
HTMLTextAreaElement.prototype.attachEvent = undefined; | |
}(this.HTMLTextAreaElement)); |
This problem has already been fixed in Ace's master branch:
https://github.com/ajaxorg/ace/blob/master/lib/ace/keyboard/textinput.js
Commit:
ajaxorg/ace@7b2ddf1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I posted this user JS in these threads:
Problems with certain websites:
http://www.reddit.com/r/operabrowser/comments/qznn9/problems_with_certain_websites/
Opera problem with IDE:
http://www.udacity-forums.com/cs101/questions/274/opera-problem-with-ide