From a112ba332bbee65f306831f59090360cde198aa9 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Fri, 23 Sep 2011 16:29:09 +0200 Subject: [PATCH] Shorter selector --- 4chan_x.user.js | 2 +- script.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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: ->