Merge branch 'v3'
Conflicts: builds/appchan-x.user.js builds/crx/script.js
This commit is contained in:
commit
f903abd165
@ -3276,7 +3276,6 @@
|
|||||||
this.thread.OP = this;
|
this.thread.OP = this;
|
||||||
this.thread.isSticky = !!$('.stickyIcon', info);
|
this.thread.isSticky = !!$('.stickyIcon', info);
|
||||||
this.thread.isClosed = !!$('.closedIcon', info);
|
this.thread.isClosed = !!$('.closedIcon', info);
|
||||||
root.parentElement.dataset.fullID = this.fullID;
|
|
||||||
}
|
}
|
||||||
this.info = {};
|
this.info = {};
|
||||||
if (subject = $('.subject', info)) {
|
if (subject = $('.subject', info)) {
|
||||||
@ -6010,7 +6009,7 @@
|
|||||||
return "/" + thread.board + "/ - " + excerpt;
|
return "/" + thread.board + "/ - " + excerpt;
|
||||||
},
|
},
|
||||||
threadFromRoot: function(root) {
|
threadFromRoot: function(root) {
|
||||||
return g.threads[root.dataset.fullID];
|
return g.threads[$('.opcontainer', root).dataset.fullID];
|
||||||
},
|
},
|
||||||
threadFromNode: function(node) {
|
threadFromNode: function(node) {
|
||||||
return Get.threadFromRoot($.x('ancestor::div[@class="thread"]', node));
|
return Get.threadFromRoot($.x('ancestor::div[@class="thread"]', node));
|
||||||
|
|||||||
@ -3329,7 +3329,6 @@
|
|||||||
this.thread.OP = this;
|
this.thread.OP = this;
|
||||||
this.thread.isSticky = !!$('.stickyIcon', info);
|
this.thread.isSticky = !!$('.stickyIcon', info);
|
||||||
this.thread.isClosed = !!$('.closedIcon', info);
|
this.thread.isClosed = !!$('.closedIcon', info);
|
||||||
root.parentElement.dataset.fullID = this.fullID;
|
|
||||||
}
|
}
|
||||||
this.info = {};
|
this.info = {};
|
||||||
if (subject = $('.subject', info)) {
|
if (subject = $('.subject', info)) {
|
||||||
@ -6068,7 +6067,7 @@
|
|||||||
return "/" + thread.board + "/ - " + excerpt;
|
return "/" + thread.board + "/ - " + excerpt;
|
||||||
},
|
},
|
||||||
threadFromRoot: function(root) {
|
threadFromRoot: function(root) {
|
||||||
return g.threads[root.dataset.fullID];
|
return g.threads[$('.opcontainer', root).dataset.fullID];
|
||||||
},
|
},
|
||||||
threadFromNode: function(node) {
|
threadFromNode: function(node) {
|
||||||
return Get.threadFromRoot($.x('ancestor::div[@class="thread"]', node));
|
return Get.threadFromRoot($.x('ancestor::div[@class="thread"]', node));
|
||||||
|
|||||||
@ -8,7 +8,7 @@ Get =
|
|||||||
excerpt = "#{excerpt[...67]}..."
|
excerpt = "#{excerpt[...67]}..."
|
||||||
"/#{thread.board}/ - #{excerpt}"
|
"/#{thread.board}/ - #{excerpt}"
|
||||||
threadFromRoot: (root) ->
|
threadFromRoot: (root) ->
|
||||||
g.threads[root.dataset.fullID]
|
g.threads[$('.opcontainer', root).dataset.fullID]
|
||||||
threadFromNode: (node) ->
|
threadFromNode: (node) ->
|
||||||
Get.threadFromRoot $.x 'ancestor::div[@class="thread"]', node
|
Get.threadFromRoot $.x 'ancestor::div[@class="thread"]', node
|
||||||
postFromRoot: (root) ->
|
postFromRoot: (root) ->
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@ -23,7 +23,6 @@ class Post
|
|||||||
@thread.OP = @
|
@thread.OP = @
|
||||||
@thread.isSticky = !!$ '.stickyIcon', info
|
@thread.isSticky = !!$ '.stickyIcon', info
|
||||||
@thread.isClosed = !!$ '.closedIcon', info
|
@thread.isClosed = !!$ '.closedIcon', info
|
||||||
root.parentElement.dataset.fullID = @fullID
|
|
||||||
|
|
||||||
@info = {}
|
@info = {}
|
||||||
if subject = $ '.subject', info
|
if subject = $ '.subject', info
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user