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