// ==UserScript==
// @name          Blank Target
// @namespace     http://www.arantius.com/misc/greasemonkey/
// @description	  Blanks out the '_blank' target on links
// @include       *
// ==/UserScript==

//
// Originally written by Anthony Lieuallen of http://www.arantius.com/
// Licensed for unlimited modification and redistribution as long as
// this notice is kept intact.
//
// If possible, please contact me regarding new features, bugfixes
// or changes that I could integrate into the existing code instead of
// creating a different script.  Thank you
//

(function () {
var res = document.evaluate("//a[@target='_blank']", 
	document, null,	XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null); 
var i, el;
for (i=0; el=res.snapshotItem(i); i++) {
	el.removeAttribute('target');
}
})();
