// ==UserScript==
// @name xunlei search result fix
// @author ezibo
// @version 1.0
// @ujs:category browser: fix
// @ujs:published 2008-09-16
// @ujs:modified 2008-05-23 08:00
// Add URLs to exclude here:
// @include http://119.147.41.16/down?cid=*
// @include http://58.251.57.206/down?cid=*
// ==/UserScript==
(function(){
document.addEventListener('DOMContentLoaded',xunleifix,false)
function xunleifix(){
var s="";
var dt=document.getElementById('downtop').childNodes;
var l,c,r,f;
for(var j=0;j<furlArr.length;j++){
c=j+1;
s+="下载地址"+c+"<br><a href='" + furlArr[j] + "'>" + furlArr[j] + "</a><br>";
s+="引用页"+c+"<br><a href='" + purlArr[j] + "'>" + purlArr[j] + "</a><br><br>";
}
for(var i=0;i<dt.length;i++){
if(dt.item(i).className == "leftbox") {
l=dt.item(i);
continue;
}
else if (dt.item(i).className == "centerbox") {
c=dt.item(i);
continue;
}
else if(dt.item(i).className == "rightbox") {
r=dt.item(i);
continue;
}
}
s="<div class='leftbox' style='white-space:nowrap;'>"+s+"</div>"
l.outerHTML=s;
r.style="display:none";
c.className="rightbox";
f=document.getElementById('mainframe');
f.parentNode.removeChild(f);
}
})()