View difference between Paste ID: tPMvLpHs and jVn3hk8e
SHOW: | | - or go back to the newest paste.
1
var removeOverlay = function(re) {
2
    this.href = this.getAttribute('onclick').match(re).pop();
3
    this.removeAttribute('onclick');
4
    this.setAttribute('target', '_blank');    
5
};
6
7-
$('a.img_filename, a.expand_image').each((i,v) => {
7+
$('a.img_filename, a.expand_image, .post_num').each((i,v) => {
8
    switch(v.className) {
9
        case 'img_filename':
10
            removeOverlay.call(v, /'(.*)'/)
11
            break;
12
        case 'expand_image':
13
            removeOverlay.call(v, /','(.*)',/)
14
            break;
15
	case 'post_num':
16
            v.previousSibling.remove()
17
            v.remove()
18
            break;
19
    }
20
});