-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathnewzcache.com.js
45 lines (36 loc) · 1.01 KB
/
newzcache.com.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
if (document.location == "http://newzcache.com/season_passes") {
var table = $("<table>").addClass("tektable")
$(".download:first").before(table)
table.before("<style> .tektable {font-size: 16px; border-collapse: collapse;} .tektable tr:hover td {background: #cdc;} .tektable td {padding: 0 5px;} </style>")
var rows = {}
var names = []
$(".download").each(function(i) {
var dis = $(this)
var row = $("<tr>")
var link = dis.find("a:first")
link.text(dis.find("h3").text())
row.append(
$("<td>").append(link)
)
row.append(
$("<td>").text(dis.find("h6").text())
)
row.append(
$("<td>").text(dis.find("h5").text())
)
row.append(
$("<td>").append(dis.find(".settings"))
)
row.append(
$("<td>").append(dis.find(".remove"))
)
var name = dis.find("h3").text() + " " + dis.find("h6").text()
rows[name] = row
names.push(name)
dis.remove()
})
names.sort()
$.each(names, function(i,v) {
table.append(rows[v])
})
}