diff --git a/4chan_x.user.js b/4chan_x.user.js index 0d5f7b913..cf3699640 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2586,7 +2586,7 @@ _ref2 = filesize.textContent.match(/(\d+)x/), _ = _ref2[0], max = _ref2[1]; img.style.maxWidth = "-moz-calc(" + max + "px)"; } - return a.appendChild(img); + return $.append(a, img); }, dialog: function() { var controls, delform, imageType, option, select, _i, _len, _ref2; diff --git a/script.coffee b/script.coffee index 85bcab54b..c07607287 100644 --- a/script.coffee +++ b/script.coffee @@ -1941,7 +1941,7 @@ imgExpand = filesize = $ 'span.filesize', a.parentNode [_, max] = filesize.textContent.match /(\d+)x/ img.style.maxWidth = "-moz-calc(#{max}px)" - a.appendChild img + $.append a, img dialog: -> controls = $.el 'div',