diff --git a/builds/appchan-x.user.js b/builds/appchan-x.user.js index dd4624249..a4451b4b7 100644 --- a/builds/appchan-x.user.js +++ b/builds/appchan-x.user.js @@ -11191,17 +11191,10 @@ var el, isVideo, post, thumb; post = $.hasClass(this, 'thumb') ? g.posts[this.parentNode.dataset.fullID] : Get.postFromNode(this); isVideo = post.file.isVideo; - if (post.file.fullImage) { - el = post.file.fullImage; - el.className = ''; - TrashQueue.remove(el); - } else { - el = $.el((isVideo ? 'video' : 'img'), { - src: post.file.URL - }); - post.file.fullImage = el; - thumb = post.file.thumb; - } + el = $.el((isVideo ? 'video' : 'img'), { + src: post.file.URL + }); + thumb = post.file.thumb; if (d.body.contains(thumb)) { if (el !== thumb.nextSibling) { $.after(thumb, el); diff --git a/builds/crx/script.js b/builds/crx/script.js index 057b23d75..ccb715ca9 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -11217,17 +11217,10 @@ var el, isVideo, post, thumb; post = $.hasClass(this, 'thumb') ? g.posts[this.parentNode.dataset.fullID] : Get.postFromNode(this); isVideo = post.file.isVideo; - if (post.file.fullImage) { - el = post.file.fullImage; - el.className = ''; - TrashQueue.remove(el); - } else { - el = $.el((isVideo ? 'video' : 'img'), { - src: post.file.URL - }); - post.file.fullImage = el; - thumb = post.file.thumb; - } + el = $.el((isVideo ? 'video' : 'img'), { + src: post.file.URL + }); + thumb = post.file.thumb; if (d.body.contains(thumb)) { if (el !== thumb.nextSibling) { $.after(thumb, el); diff --git a/src/Images/ImageHover.coffee b/src/Images/ImageHover.coffee index 93f491644..dfaa50d1b 100755 --- a/src/Images/ImageHover.coffee +++ b/src/Images/ImageHover.coffee @@ -20,15 +20,9 @@ ImageHover = else Get.postFromNode @ {isVideo} = post.file - if post.file.fullImage - el = post.file.fullImage - el.className = '' - TrashQueue.remove el - else - el = $.el (if isVideo then 'video' else 'img'), - src: post.file.URL - post.file.fullImage = el - {thumb} = post.file + el = $.el (if isVideo then 'video' else 'img'), + src: post.file.URL + {thumb} = post.file if d.body.contains thumb $.after thumb, el unless el is thumb.nextSibling