This documentation relates to Opera's now deprecated .oex Extension API framework for Opera versions <= 12.15 and also provided by our OEX2NEX shim library.
For the latest Opera Extensions API documentation for Opera versions > 12.15 please consult the latest Opera Extensions API documentation online.
Removes an existing listener from an event.
type
: The type of event. See addEventListener for the list of possible event types.listener
: The object that the listener was attached to.useCapture
: Which phase the listener was assigned to.void removeEventListener (<DOMString> type, <EventListener> listener, UseCapture)
var myFunc = function(userJSEvent) {
userJSEvent.element.text = userJSEvent.element.text.replace(/function\s+window\.onload\(/g, 'window.onload = function(');
};
opera.removeEventListener('BeforeScript', myFunc, false);