diff --git a/4chan_x.user.js b/4chan_x.user.js index e2a3e241c..5a90d6700 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2466,12 +2466,11 @@ id: 'iHover', src: this.parentNode.href }); - imgHover.img = img; ui.el = img; return $.append(d.body, img); }, mouseout: function(e) { - return $.rm(imgHover.img); + return $.rm(ui.el); } }; imgPreloading = { diff --git a/script.coffee b/script.coffee index 80d9f696f..d49ebb756 100644 --- a/script.coffee +++ b/script.coffee @@ -1862,11 +1862,10 @@ imgHover = img = $.el 'img' id: 'iHover' src: @parentNode.href - imgHover.img = img ui.el = img $.append d.body, img mouseout: (e) -> - $.rm imgHover.img + $.rm ui.el imgPreloading = init: ->