Revert "2.11.1"

This reverts commit 46ca280d4a2af9938c84321cc357435beea99235.
This commit is contained in:
James Campos 2011-05-30 23:01:41 -07:00
parent ba27209007
commit 472482b4e4
4 changed files with 7 additions and 10 deletions

View File

@ -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 <james.r.campos@gmail.com>
// @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;

View File

@ -1,6 +1,3 @@
2.11.1
- work on firefox < 6.0
2.11.0
mayhem:
- fix quote highlighting

2
header
View File

@ -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 <james.r.campos@gmail.com>
// @license MIT; http://en.wikipedia.org/wiki/Mit_license
// @include http://boards.4chan.org/*

View File

@ -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