// ==UserScript==
// @name Strip Targets
// @namespace http://thomwetzel.com/greasemonkey/
// @description Removes targets from anchors so new windows/tabs are opening when I want them to.
// @include *
// ==/UserScript==
/*
	(c) 2006 Thom Wetzel
	http://www.thomwetzel.com/
	
	v. 2006-02-13
	* _self ignored 
	
*/

var anchors = document.getElementsByTagName('a');

for (var i = 0; i < anchors.length; i++) {

	// clear target attribute
	if (anchors[i].getAttribute('target') != '_self')
		anchors[i].setAttribute('target', '');
	
}