Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- javascript:(function(){l=$("tr.everyliens").find('a[id^="liena"]');var e=new Array;var t=new Array;var n=new Array;var r="";var s="";var o="";var u=new Array;var a="";l.each(function(r,i){id=$(i).find('[id^="episodea"]').text().trim();host=$(i).parent().prev().text().trim();upl=$(i).parent().prev().prev().prev().text().trim();link=$(i).attr("href").trim();if(id=="")id="inconnu";if(typeof e[id]=="undefined")e[id]=new Array;if(typeof t[host]=="undefined")t[host]=new Array;if(typeof n[upl]=="undefined")n[upl]=new Array;if(typeof u[upl]=="undefined")u[upl]=new Array;if(typeof u[upl][host]=="undefined")u[upl][host]=new Array;e[id].push(new Array(link,host));t[host].push(new Array(link,id));n[upl].push(new Array(link,id));u[upl][host].push(new Array(link,id))});for(var f in e){r+="\r\nEpisode "+f+"\r\n---------\r\n";for(i=0;i<e[f].length;i++){r+=e[f][i][0]+" ("+e[f][i][1]+")\r\n"}}for(var f in t){s+="\r\n"+f+" ("+t[f].length+" liens)\r\n---------\r\n";for(i=0;i<t[f].length;i++){s+=t[f][i][0]+" ("+t[f][i][1]+")\r\n"}}for(var f in n){o+="\r\n"+f+" ("+n[f].length+" liens)\r\n---------\r\n";for(i=0;i<n[f].length;i++){o+=n[f][i][0]+" ("+n[f][i][1]+")\r\n"}}for(var f in u){a+="\r\n"+f+" ("+u[f].length+" hosts)\r\n---------\r\n";for(var c in u[f]){a+="\r\n"+c+" ("+u[f][c].length+" episodes)\r\n---------\r\n";for(i=0;i<u[f][c].length;i++){a+=u[f][c][i][0]+" ("+u[f][c][i][1]+")\r\n"}}}top.consoleRef=window.open("","myconsole","width=350,height=250,menubar=0,toolbar=0,status=0,scrollbars=1,resizable=1");top.consoleRef.document.writeln('<html><head><title>Resultats</title></head><body><div id="top">Liens : <a href="#uplsort">par uploader</a> - <a href="#epsort">par épisodes</a> - <a href="#hostersort">par hébergeurs</a> - </div>'+'<div><h3>Tri</h3><a href="#top">haut</a><pre>'+a+"</pre></div>"+'<div><h3 id="uplsort">Tri par uploader</h3><a href="#top">haut</a><pre>'+o+"</pre></div>"+'<div><h3 id="epsort">Tri par episode</h3><a href="#top">haut</a><pre>'+r+"</pre></div>"+'<div><h3 id="hostersort">Tri par hébergeurs</h3><a href="#top">haut</a><pre>'+s+"</pre></div>"+"</body></html>");top.consoleRef.document.close()})();
Advertisement
Add Comment
Please, Sign In to add comment