// ==UserScript==
// @name          Frame Dissector
// @namespace     http://www.planb-security.net/userscripts/
// @description	  Opens all frames in new tabs behind the original page.
// @include       http://*
// ==/UserScript==

/* Goes great with Monkeyspaw, at
	http://www.planb-security.net/userscripts/ */

(function() {
var i=0,f;
if (window.frames.length > 0) {
	var frames=document.evaluate("//frame",
				document,
				null,
				XPathResult.ANY_TYPE,
				null);
	while (f = frames.iterateNext()) {
		GM_openInTab(f.src);
	}
}
})();
