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