Skip to content

Instantly share code, notes, and snippets.

@fearphage
Created October 6, 2009 10:49
Show Gist options
  • Select an option

  • Save fearphage/202922 to your computer and use it in GitHub Desktop.

Select an option

Save fearphage/202922 to your computer and use it in GitHub Desktop.
allows you to open subframes outside of the frameset
// ==UserScript==
// @include http://zonaele.com/*
// @include http://www.zonaele.com/*
// ==/UserScript==
(function(opera) {
var needle = 'if (top == self)';
opera.addEventListener('BeforeScript'
,function(e) {
var text = e.element.text;
if (text.indexOf(needle) > -1) {
e.element.text = text.replace(needle, '0 &&');
opera.removeEventListener('BeforeScript', arguments.callee, false);
}
}
,false
);
})(this.opera);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment