diff --git a/4chan_x.user.js b/4chan_x.user.js index 6c29c7cc0..ed871e72f 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -3367,7 +3367,7 @@ return thumb.nextSibling.hidden = true; }, expand: function(thumb, url) { - var a, filesize, img, max; + var a, img; if ($.x('ancestor-or-self::*[@hidden]', thumb)) return; thumb.hidden = true; if (img = thumb.nextSibling) { @@ -3378,11 +3378,6 @@ img = $.el('img', { src: url || a.href }); - if (engine === 'gecko' && a.parentNode.className !== 'op') { - filesize = $.x('preceding-sibling::span[@class="filesize"]', a).textContent; - max = filesize.match(/(\d+)x/); - img.style.maxWidth = "" + max[1] + "px"; - } if (conf['404 Redirect']) $.on(img, 'error', imgExpand.error); return $.add(a, img); }, diff --git a/script.coffee b/script.coffee index b751e1a17..8973f4813 100644 --- a/script.coffee +++ b/script.coffee @@ -2590,10 +2590,6 @@ imgExpand = a = thumb.parentNode img = $.el 'img', src: url or a.href - if engine is 'gecko' and a.parentNode.className isnt 'op' - filesize = $.x('preceding-sibling::span[@class="filesize"]', a).textContent - max = filesize.match /(\d+)x/ - img.style.maxWidth = "#{max[1]}px" $.on img, 'error', imgExpand.error if conf['404 Redirect'] $.add a, img