diff --git a/4chan_x.user.js b/4chan_x.user.js index 72ceb39d7..6068010db 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2500,8 +2500,7 @@ g.callbacks.push(imgExpand.node); imgExpand.dialog(); $.bind(window, 'resize', imgExpand.resize); - imgExpand.style = $.addStyle("body.fitheight img[md5] + img { max-height: " + d.body.clientHeight + "px }"); - return imgExpand.style.className = 'height'; + return imgExpand.style = $.addStyle("body.fitheight img[md5] + img { max-height: " + d.body.clientHeight + "px }"); }, node: function(root) { var a, thumb; diff --git a/script.coffee b/script.coffee index 6f9312029..3d271b86c 100644 --- a/script.coffee +++ b/script.coffee @@ -1882,7 +1882,6 @@ imgExpand = imgExpand.dialog() $.bind window, 'resize', imgExpand.resize imgExpand.style = $.addStyle "body.fitheight img[md5] + img { max-height: #{d.body.clientHeight}px }" - imgExpand.style.className = 'height' node: (root) -> return unless thumb = $ 'img[md5]', root