Looking for the thread class is required for moot's posts.
This commit is contained in:
parent
1eece6a652
commit
087dda6f48
@ -681,10 +681,10 @@
|
|||||||
quote.pathname = "/" + g.BOARD + "/res/" + threadID;
|
quote.pathname = "/" + g.BOARD + "/res/" + threadID;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
quoteIndicators.node(bq);
|
$.replace(a.parentNode.parentNode, bq);
|
||||||
if (conf['Quote Preview']) quotePreview.node(bq);
|
if (conf['Quote Preview']) quotePreview.node(bq);
|
||||||
if (conf['Quote Inline']) quoteInline.node(bq);
|
if (conf['Quote Inline']) quoteInline.node(bq);
|
||||||
return $.replace(a.parentNode.parentNode, bq);
|
return quoteIndicators.node(bq);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -3041,7 +3041,7 @@
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
qp.innerHTML = "Loading " + id + "...";
|
qp.innerHTML = "Loading " + id + "...";
|
||||||
threadID = this.pathname.split('/').pop() || $.x('ancestor::div', this).firstChild.id;
|
threadID = this.pathname.split('/').pop() || $.x('ancestor::div[@class="thread"]', this).firstChild.id;
|
||||||
$.cache(this.pathname, (function() {
|
$.cache(this.pathname, (function() {
|
||||||
return quotePreview.parse(this, id, threadID);
|
return quotePreview.parse(this, id, threadID);
|
||||||
}));
|
}));
|
||||||
@ -3095,7 +3095,7 @@
|
|||||||
node: function(root) {
|
node: function(root) {
|
||||||
var path, quote, tid, _i, _len, _ref;
|
var path, quote, tid, _i, _len, _ref;
|
||||||
if (root.className === 'inline') return;
|
if (root.className === 'inline') return;
|
||||||
tid = g.THREAD_ID || $.x('ancestor::div', root).firstChild.id;
|
tid = g.THREAD_ID || $.x('ancestor::div[@class="thread"]', root).firstChild.id;
|
||||||
_ref = $$('.quotelink', root);
|
_ref = $$('.quotelink', root);
|
||||||
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
||||||
quote = _ref[_i];
|
quote = _ref[_i];
|
||||||
|
|||||||
@ -502,12 +502,12 @@ expandComment =
|
|||||||
for quote in $$ '.quotelink', bq
|
for quote in $$ '.quotelink', bq
|
||||||
if quote.getAttribute('href') is quote.hash
|
if quote.getAttribute('href') is quote.hash
|
||||||
quote.pathname = "/#{g.BOARD}/res/#{threadID}"
|
quote.pathname = "/#{g.BOARD}/res/#{threadID}"
|
||||||
quoteIndicators.node bq
|
$.replace a.parentNode.parentNode, bq
|
||||||
if conf['Quote Preview']
|
if conf['Quote Preview']
|
||||||
quotePreview.node bq
|
quotePreview.node bq
|
||||||
if conf['Quote Inline']
|
if conf['Quote Inline']
|
||||||
quoteInline.node bq
|
quoteInline.node bq
|
||||||
$.replace a.parentNode.parentNode, bq
|
quoteIndicators.node bq
|
||||||
|
|
||||||
expandThread =
|
expandThread =
|
||||||
init: ->
|
init: ->
|
||||||
@ -2398,7 +2398,7 @@ quotePreview =
|
|||||||
quote.className = 'forwardlink'
|
quote.className = 'forwardlink'
|
||||||
else
|
else
|
||||||
qp.innerHTML = "Loading #{id}..."
|
qp.innerHTML = "Loading #{id}..."
|
||||||
threadID = @pathname.split('/').pop() or $.x('ancestor::div', @).firstChild.id
|
threadID = @pathname.split('/').pop() or $.x('ancestor::div[@class="thread"]', @).firstChild.id
|
||||||
$.cache @pathname, (-> quotePreview.parse @, id, threadID)
|
$.cache @pathname, (-> quotePreview.parse @, id, threadID)
|
||||||
ui.hover e
|
ui.hover e
|
||||||
$.on @, 'mousemove', ui.hover
|
$.on @, 'mousemove', ui.hover
|
||||||
@ -2439,7 +2439,7 @@ quoteIndicators =
|
|||||||
g.callbacks.push @node
|
g.callbacks.push @node
|
||||||
node: (root) ->
|
node: (root) ->
|
||||||
return if root.className is 'inline'
|
return if root.className is 'inline'
|
||||||
tid = g.THREAD_ID or $.x('ancestor::div', root).firstChild.id
|
tid = g.THREAD_ID or $.x('ancestor::div[@class="thread"]', root).firstChild.id
|
||||||
for quote in $$ '.quotelink', root
|
for quote in $$ '.quotelink', root
|
||||||
if conf['Indicate OP quote'] and quote.hash[1..] is tid
|
if conf['Indicate OP quote'] and quote.hash[1..] is tid
|
||||||
# \u00A0 is nbsp
|
# \u00A0 is nbsp
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user