-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathmetacritic.js
30 lines (29 loc) · 1.04 KB
/
metacritic.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
/*
javascript:(function(){document.body.appendChild(document.createElement("script")).src="https://gabrielsroka.github.io/metacritic.js";})();
*/
(function() {
$('#social_btm').hide();
var ts = document.getElementsByTagName("table");
for (var t = 0; t < ts.length; t++) {
var at = ts[t];
at.style.width = '100%';
if (at.className == "listtable") {
for (var r = 0; r < at.rows.length; r++) {
var ar = at.rows[r];
for (var c = 1; c < ar.cells.length; c++) {
var ac = ar.cells[c];
var h = ac.innerHTML;
if (c == 1) {
h = ' ' + h.replace(/">/, '" target="_blank">');
} else {
h = '<br>' + h;
}
ar.cells[0].innerHTML += h;
ac.innerHTML = "";
}
ar.cells[0].style.fontSize = "1em";
ar.cells[0].style.width = "100%";
}
}
}
})();