Skip to content

Instantly share code, notes, and snippets.

@miya2000
Created February 8, 2013 22:00
Show Gist options
  • Select an option

  • Save miya2000/4742293 to your computer and use it in GitHub Desktop.

Select an option

Save miya2000/4742293 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name jQuery1.9.1 for Opera10.10
// @include *
// ==/UserScript==
(function() {
opera.addEventListener('BeforeScript', function(e) {
// div#click is "undefined". a#click, input#click is "Function".
if (e.element.src == 'http://code.jquery.com/jquery-1.9.1.js') {
e.element.text = e.element.text.replace('div.cloneNode( true ).click();', '');
}
else if (e.element.src == 'http://code.jquery.com/jquery-1.9.1.min.js') {
e.element.text = e.element.text.replace(',d.cloneNode(!0).click()', '');
}
}, false);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment