diff --git a/4chan_x.user.js b/4chan_x.user.js index cd552762b..056d57c34 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2,7 +2,7 @@ // @name 4chan x // @namespace aeosynth // @description Adds various features. -// @version 2.11.1 +// @version 2.11.0 // @copyright 2009-2011 James Campos // @license MIT; http://en.wikipedia.org/wiki/Mit_license // @include http://boards.4chan.org/* @@ -1898,7 +1898,7 @@ }, mouseover: function(e) { var el, id, qp, quote, replyID, threadID, _i, _len, _ref, _ref2; - this.href = this.getAttribute('data-href'); + this.href = this.dataset.href; id = this.hash.slice(1); qp = $('#qp'); if (el = d.getElementById(id)) { @@ -2209,7 +2209,7 @@ mouseover: function(e) { var a, el; a = this.parentNode; - a.href = a.getAttribute('data-href'); + a.href = a.dataset.href; el = $('#iHover'); el.src = null; el.src = this.parentNode.href; diff --git a/changelog b/changelog index 038067a96..98445d453 100644 --- a/changelog +++ b/changelog @@ -1,6 +1,3 @@ -2.11.1 -- work on firefox < 6.0 - 2.11.0 mayhem: - fix quote highlighting diff --git a/header b/header index 8910376b4..bab6cd1c7 100644 --- a/header +++ b/header @@ -2,7 +2,7 @@ // @name 4chan x // @namespace aeosynth // @description Adds various features. -// @version 2.11.1 +// @version 2.11.0 // @copyright 2009-2011 James Campos // @license MIT; http://en.wikipedia.org/wiki/Mit_license // @include http://boards.4chan.org/* diff --git a/script.coffee b/script.coffee index a1b9fdb4d..86cf78994 100644 --- a/script.coffee +++ b/script.coffee @@ -1480,7 +1480,7 @@ quotePreview = node: (root) -> for quote in $$ 'a.quotelink, a.backlink', root continue unless quote.hash - # XXX dataset requires firefox 6.0+ + # XXX this needs a globalEval (wtf?) on firefox 6.0a2 / scriptish # quote.dataset.href = quote.href quote.setAttribute 'data-href', quote.href quote.removeAttribute 'href' @@ -1493,7 +1493,7 @@ quotePreview = @.removeAttribute 'href' $.removeClass el, 'qphl' if el = d.getElementById id mouseover: (e) -> - @href = @getAttribute 'data-href' + @href = @dataset.href id = @hash[1..] qp = $ '#qp' if el = d.getElementById id @@ -1689,7 +1689,7 @@ imageHover = $.bind thumb, 'mouseout', imageHover.cb.mouseout mouseover: (e) -> a = @parentNode - a.href = a.getAttribute 'data-href' + a.href = a.dataset.href el = $ '#iHover' el.src = null el.src = @parentNode.href