diff --git a/4chan_x.user.js b/4chan_x.user.js index 1164e6cdf..28811aba3 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2455,13 +2455,11 @@ }); }, mouseover: function(e) { - var img; - img = $.el('img', { + ui.el = $.el('img', { id: 'iHover', src: this.parentNode.href }); - ui.el = img; - return $.append(d.body, img); + return $.append(d.body, ui.el); } }; imgPreloading = { diff --git a/script.coffee b/script.coffee index a00936844..e036105ef 100644 --- a/script.coffee +++ b/script.coffee @@ -1854,11 +1854,10 @@ imgHover = $.bind thumb, 'mousemove', ui.hover $.bind thumb, 'mouseout', ui.hoverend mouseover: (e) -> - img = $.el 'img' + ui.el = $.el 'img' id: 'iHover' src: @parentNode.href - ui.el = img - $.append d.body, img + $.append d.body, ui.el imgPreloading = init: ->