diff --git a/4chan_x.user.js b/4chan_x.user.js index a79bbca87..64f114e1d 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2325,6 +2325,9 @@ } a = thumb.parentNode; $.bind(a, 'click', imgExpand.cb.toggle); + if (root.className === 'inline') { + return; + } if (imgExpand.on) { return imgExpand.toggle(a); } diff --git a/script.coffee b/script.coffee index 1a4993b72..813dcdba1 100644 --- a/script.coffee +++ b/script.coffee @@ -1743,6 +1743,7 @@ imgExpand = return unless thumb = $ 'img[md5]', root a = thumb.parentNode $.bind a, 'click', imgExpand.cb.toggle + return if root.className is 'inline' if imgExpand.on then imgExpand.toggle a toggle: (e) -> return if e.shiftKey or e.altKey or e.ctrlKey or e.button isnt 0