diff --git a/4chan_x.user.js b/4chan_x.user.js index f2681f928..f29f41906 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2769,7 +2769,7 @@ return $.prepend(delform, controls); }, resize: function(e) { - return imgExpand.style.innerHTML = "body.fitheight img[md5] + img { max-height: " + d.body.clientHeight + "px }"; + return imgExpand.style.innerHTML = ".fitheight img[md5] + img {max-height:" + d.body.clientHeight + "px;}"; } }; firstRun = { diff --git a/script.coffee b/script.coffee index 6723e9c35..192a7f29d 100644 --- a/script.coffee +++ b/script.coffee @@ -2055,7 +2055,7 @@ imgExpand = $.prepend delform, controls resize: (e) -> - imgExpand.style.innerHTML = "body.fitheight img[md5] + img { max-height: #{d.body.clientHeight}px }" + imgExpand.style.innerHTML = ".fitheight img[md5] + img {max-height:#{d.body.clientHeight}px;}" firstRun = init: ->