Revert "Revert "tweak""

This reverts commit 31a5f5e8a5e784fbeb4ef62c1b0b0e414ad492ee.

Conflicts:

	4chan_x.user.js
This commit is contained in:
James Campos 2011-05-30 23:03:07 -07:00
parent ec82bfb099
commit 3f9affd5fc
2 changed files with 6 additions and 6 deletions

View File

@ -1894,7 +1894,7 @@
return $.removeClass(el, 'qphl'); return $.removeClass(el, 'qphl');
}, },
mouseover: function(e) { mouseover: function(e) {
var el, id, qp, quote, replyID, threadID, _i, _len, _ref, _ref2; var el, id, qp, quote, replyID, threadID, _i, _len, _ref;
id = this.hash.slice(1); id = this.hash.slice(1);
qp = $('#qp'); qp = $('#qp');
if (el = d.getElementById(id)) { if (el = d.getElementById(id)) {
@ -1903,10 +1903,10 @@
$.addClass(el, 'qphl'); $.addClass(el, 'qphl');
} }
if (this.className === 'backlink') { if (this.className === 'backlink') {
replyID = (_ref = $.x('ancestor::*[@id][1]', this)) != null ? _ref.id.match(/\d+/)[0] : void 0; replyID = $.x('ancestor::*[@id][1]', this).id.match(/\d+/)[0];
_ref2 = $$('a.quotelink', qp); _ref = $$('a.quotelink', qp);
for (_i = 0, _len = _ref2.length; _i < _len; _i++) { for (_i = 0, _len = _ref.length; _i < _len; _i++) {
quote = _ref2[_i]; quote = _ref[_i];
if (quote.hash.slice(1) === replyID) { if (quote.hash.slice(1) === replyID) {
quote.className = 'forwardlink'; quote.className = 'forwardlink';
} }

View File

@ -1494,7 +1494,7 @@ quotePreview =
qp.innerHTML = el.innerHTML qp.innerHTML = el.innerHTML
$.addClass el, 'qphl' if $.config 'Quote Highlighting' $.addClass el, 'qphl' if $.config 'Quote Highlighting'
if @className is 'backlink' if @className is 'backlink'
replyID = $.x('ancestor::*[@id][1]', @)?.id.match(/\d+/)[0] replyID = $.x('ancestor::*[@id][1]', @).id.match(/\d+/)[0]
for quote in $$ 'a.quotelink', qp for quote in $$ 'a.quotelink', qp
if quote.hash[1..] is replyID if quote.hash[1..] is replyID
quote.className = 'forwardlink' quote.className = 'forwardlink'