// ==UserScript==
// @name        Linkdump Plain Link
// @namespace   http://www.arantius.com/misc/greasemonkey/
// @description	Removes the intermediate link when possible
// @include     http://www.linkdump.be/
// @include     http://www.linkdump.be/index.php*
// ==/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[starts-with(./text(), 'http://')]", document, null,
		XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null); 
	var i, a;
	for (i=0; a=res.snapshotItem(i); i++) {
		dump(a+'\n');
	}
})();

// vim: set ts=2 sw=2 :
