This commit is contained in:
James Campos 2011-05-29 16:59:18 -07:00
parent b5b78b8309
commit 46ca280d4a
4 changed files with 10 additions and 7 deletions

View File

@ -2,7 +2,7 @@
// @name 4chan x
// @namespace aeosynth
// @description Adds various features.
// @version 2.11.0
// @version 2.11.1
// @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.dataset.href;
this.href = this.getAttribute('data-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.dataset.href;
a.href = a.getAttribute('data-href');
el = $('#iHover');
el.src = null;
el.src = this.parentNode.href;

View File

@ -1,3 +1,6 @@
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.0
// @version 2.11.1
// @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 this needs a globalEval (wtf?) on firefox 6.0a2 / scriptish
# XXX dataset requires firefox 6.0+
# 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 = @dataset.href
@href = @getAttribute 'data-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.dataset.href
a.href = a.getAttribute 'data-href'
el = $ '#iHover'
el.src = null
el.src = @parentNode.href