Make use of post.blockquote.
This commit is contained in:
parent
81b6d97c59
commit
860921e47e
@ -648,7 +648,7 @@
|
||||
comment: function(post) {
|
||||
var data, i, nodes, text, _i, _ref;
|
||||
text = [];
|
||||
nodes = d.evaluate('.//br|.//text()', post.el.lastElementChild, null, 7, null);
|
||||
nodes = d.evaluate('.//br|.//text()', post.blockquote, null, 7, null);
|
||||
for (i = _i = 0, _ref = nodes.snapshotLength; 0 <= _ref ? _i < _ref : _i > _ref; i = 0 <= _ref ? ++_i : --_i) {
|
||||
text.push((data = nodes.snapshotItem(i).data) ? data : '\n');
|
||||
}
|
||||
@ -3346,7 +3346,7 @@
|
||||
if (post.isInlined && !post.isCrosspost) {
|
||||
return;
|
||||
}
|
||||
snapshot = d.evaluate('.//text()[not(parent::a)]', post.el.lastElementChild, null, 6, null);
|
||||
snapshot = d.evaluate('.//text()[not(parent::a)]', post.blockquote, null, 6, null);
|
||||
for (i = _i = 0, _ref = snapshot.snapshotLength; 0 <= _ref ? _i < _ref : _i > _ref; i = 0 <= _ref ? ++_i : --_i) {
|
||||
node = snapshot.snapshotItem(i);
|
||||
data = node.data;
|
||||
|
||||
@ -512,7 +512,7 @@ Filter =
|
||||
comment: (post) ->
|
||||
text = []
|
||||
# XPathResult.ORDERED_NODE_SNAPSHOT_TYPE is 7
|
||||
nodes = d.evaluate './/br|.//text()', post.el.lastElementChild, null, 7, null
|
||||
nodes = d.evaluate './/br|.//text()', post.blockquote, null, 7, null
|
||||
for i in [0...nodes.snapshotLength]
|
||||
text.push if data = nodes.snapshotItem(i).data then data else '\n'
|
||||
text.join ''
|
||||
@ -2530,7 +2530,7 @@ Quotify =
|
||||
|
||||
# XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE is 6
|
||||
# Get all the text nodes that are not inside an anchor.
|
||||
snapshot = d.evaluate './/text()[not(parent::a)]', post.el.lastElementChild, null, 6, null
|
||||
snapshot = d.evaluate './/text()[not(parent::a)]', post.blockquote, null, 6, null
|
||||
|
||||
for i in [0...snapshot.snapshotLength]
|
||||
node = snapshot.snapshotItem i
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user