Puretna Show Popular

By reddwarf Last update Mar 30, 2006 — Installed 1,757 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 6 posts, 4 voices



'; needs to be before newCode+=row[i].innerHTML; and newCode+=row[i+1].innerHTML; and newCode+='; needs to be placed after both of them like in your Empornium script.

Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
jordi2k Scriptwright


(
function() {

if(document.location.href.indexOf("browse.php") >= 0) {
var newCode = ""; // new HTML code for table
var threshold = 80; // threshold for seedcount, lower than this will not be showed

var tables = document.getElementsByTagName("TABLE");

var row = tables[13].rows; //this table contains the torrentslisting
var rowLength = row.length;

newCode+='

';
newCode+=row[0].innerHTML; // row contains type etc

for (var i=1; i< rowLength;i++) {
if (row[i].cells.length == 10) {
//alert (row[i].cells[7].textContent)
if (row[i].cells[7].textContent >= threshold) { //cells[7] contains seedcount

newCode+='';
newCode+=row[i].innerHTML;
newCode+='';
newCode+=row[i+1].innerHTML;
newCode+='';
}
}
}
newCode+= '
';
tables[13].innerHTML = newCode;
}
}
)();

 
Skorpinox User

Dang it. The last one should be newCode+='< /tr>'; without the space.

 
Skorpinox User

Err, it should be newCode+='< tr>'; and newCode+='</ tr>'; without the spaces of course.

 
Skorpinox User

This doesn't work with Firefox. Comparing this to your Empornium script, this one needs innerHTML instead of outerHTML and textContent instead of innerText. Also, it should be table[14] instead of table[13] as it's the fifteenth table in the array. Finally, newCode+='

 
Arvid Scriptwright

I think you and me visit the same torrentsites... damn

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel