From 82fbca11e92d36dc5da05bba039e9586a3dcd26c Mon Sep 17 00:00:00 2001 From: James Campos Date: Mon, 30 May 2011 23:01:50 -0700 Subject: [PATCH] Revert "block status bar when image hovering" This reverts commit 268c5f592b8ea63a5fe62407f7ba6e8d97954d4e. --- 4chan_x.user.js | 17 +++-------------- script.coffee | 9 --------- 2 files changed, 3 insertions(+), 23 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 7a4795930..78a68da09 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2194,32 +2194,21 @@ }, cb: { node: function(root) { - var a, thumb; + var thumb; if (!(thumb = $('img[md5]', root))) { return; } - a = thumb.parentNode; - a.setAttribute('data-href', a.href); - a.removeAttribute('href'); $.bind(thumb, 'mouseover', imageHover.cb.mouseover); $.bind(thumb, 'mousemove', ui.hover); - $.bind(thumb, 'mouseout', ui.hoverend); - return $.bind(thumb, 'mouseout', imageHover.cb.mouseout); + return $.bind(thumb, 'mouseout', ui.hoverend); }, mouseover: function(e) { - var a, el; - a = this.parentNode; - a.href = a.dataset.href; + var el; el = $('#iHover'); el.src = null; el.src = this.parentNode.href; ui.el = el; return $.show(el); - }, - mouseout: function(e) { - var a; - a = this.parentNode; - return a.removeAttribute('href'); } } }; diff --git a/script.coffee b/script.coffee index 1f4c5ee71..7a5d9d8eb 100644 --- a/script.coffee +++ b/script.coffee @@ -1681,24 +1681,15 @@ imageHover = cb: node: (root) -> return unless thumb = $ 'img[md5]', root - a = thumb.parentNode - a.setAttribute 'data-href', a.href - a.removeAttribute 'href' $.bind thumb, 'mouseover', imageHover.cb.mouseover $.bind thumb, 'mousemove', ui.hover $.bind thumb, 'mouseout', ui.hoverend - $.bind thumb, 'mouseout', imageHover.cb.mouseout mouseover: (e) -> - a = @parentNode - a.href = a.dataset.href el = $ '#iHover' el.src = null el.src = @parentNode.href ui.el = el $.show el - mouseout: (e) -> - a = @parentNode - a.removeAttribute 'href' imgPreloading = init: ->