// ==UserScript==
// 	Name           Remove Redirect
// 	Namespace      boardraider@camp-firefox.de
// @include        http://.php*
// ==/UserScript==
var links = document.evaluate("//a[starts-with(@href, " +
  "'http://=')]", document, null,
  XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
for (var i = 0; i < links.snapshotLength; i++) {
  links.snapshotItem(i).href = links.snapshotItem(i).href
    .split("http://download=")[1];
}