SHOW:
|
|
- or go back to the newest paste.
1 | var nastyGlobalVariable=''; | |
2 | [].forEach | |
3 | - | .call( |
3 | + | .call( |
4 | - | document.querySelectorAll("tr.zA"), |
4 | + | document.querySelectorAll("tr.zA"), |
5 | - | function(tr) { |
5 | + | function(tr) { |
6 | - | var tit = tr.querySelector(".xW span") |
6 | + | var tit = tr.querySelector(".xW span").getAttribute("title").replace(/at\s+\d+:\d+.*/, ''); |
7 | - | .getAttribute("title") |
7 | + | if (tit != nastyGlobalVariable) { |
8 | - | .replace(/at\s+\d+:\d+.*/, ''); |
8 | + | nastyGlobalVariable = tit; |
9 | - | if (tit != nastyGlobalVariable) { |
9 | + | tr.insertAdjacentHTML('beforebegin', |
10 | - | nastyGlobalVariable = tit; |
10 | + | '<tr class=""><td style="width:2px;background:#ccc"></td><td colspan=7 align=center style="background:#ccc;font-size:12px;padding:2px">' |
11 | - | tr.insertAdjacentHTML( |
11 | + | + tit + '</td></tr>') |
12 | - | 'beforebegin', |
12 | + | } |
13 | - | '<tr class=""><td style="width:2px;background:#ccc"></td><td colspan=7 align=center style="background:#ccc;font-size:12px;padding:2px">' |
13 | + | }); |