And that should fix everything. Woo.
This commit is contained in:
parent
5a080e7f60
commit
1c5c542ca1
2
LICENSE
2
LICENSE
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* 4chan X - Version 1.2.44 - 2014-01-05
|
* 4chan X - Version 1.2.44 - 2014-01-06
|
||||||
*
|
*
|
||||||
* Licensed under the MIT license.
|
* Licensed under the MIT license.
|
||||||
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
|
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
|
||||||
|
|||||||
@ -22,7 +22,7 @@
|
|||||||
// ==/UserScript==
|
// ==/UserScript==
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* 4chan X - Version 1.2.44 - 2014-01-05
|
* 4chan X - Version 1.2.44 - 2014-01-06
|
||||||
*
|
*
|
||||||
* Licensed under the MIT license.
|
* Licensed under the MIT license.
|
||||||
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
|
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
|
||||||
@ -1466,6 +1466,9 @@
|
|||||||
RandomAccessList.prototype.push = function(item) {
|
RandomAccessList.prototype.push = function(item) {
|
||||||
var ID, last;
|
var ID, last;
|
||||||
ID = item.ID;
|
ID = item.ID;
|
||||||
|
if (this[ID]) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
last = this.last;
|
last = this.last;
|
||||||
item.prev = last;
|
item.prev = last;
|
||||||
this[ID] = item;
|
this[ID] = item;
|
||||||
@ -5026,7 +5029,7 @@
|
|||||||
$.after(root, threadContainer);
|
$.after(root, threadContainer);
|
||||||
} else {
|
} else {
|
||||||
threadContainer = root.nextSibling;
|
threadContainer = root.nextSibling;
|
||||||
post = Get.postFromRoot($.x('child::div[contains(@class,"postContainer")][last()]', threadContainer));
|
post = Get.postFromRoot($.x('descendant::div[contains(@class,"postContainer")][last()]', threadContainer));
|
||||||
}
|
}
|
||||||
$.add(threadContainer, this.nodes.root);
|
$.add(threadContainer, this.nodes.root);
|
||||||
if (!Conf['Unread Count'] || this.ID < Unread.lastReadPost) {
|
if (!Conf['Unread Count'] || this.ID < Unread.lastReadPost) {
|
||||||
@ -5038,12 +5041,12 @@
|
|||||||
}
|
}
|
||||||
if (posts[post.ID]) {
|
if (posts[post.ID]) {
|
||||||
posts.after(post, this);
|
posts.after(post, this);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if ((ID = posts.closest(post.ID)) !== -1) {
|
||||||
|
posts.after(posts[ID], this);
|
||||||
} else {
|
} else {
|
||||||
if ((ID = posts.closest(post.ID)) !== -1) {
|
posts.prepend(this);
|
||||||
posts.after(posts[ID], this);
|
|
||||||
} else {
|
|
||||||
posts.prepend(this);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
// Generated by CoffeeScript
|
// Generated by CoffeeScript
|
||||||
/*
|
/*
|
||||||
* 4chan X - Version 1.2.44 - 2014-01-05
|
* 4chan X - Version 1.2.44 - 2014-01-06
|
||||||
*
|
*
|
||||||
* Licensed under the MIT license.
|
* Licensed under the MIT license.
|
||||||
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
|
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
|
||||||
@ -1472,6 +1472,9 @@
|
|||||||
RandomAccessList.prototype.push = function(item) {
|
RandomAccessList.prototype.push = function(item) {
|
||||||
var ID, last;
|
var ID, last;
|
||||||
ID = item.ID;
|
ID = item.ID;
|
||||||
|
if (this[ID]) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
last = this.last;
|
last = this.last;
|
||||||
item.prev = last;
|
item.prev = last;
|
||||||
this[ID] = item;
|
this[ID] = item;
|
||||||
@ -5029,7 +5032,7 @@
|
|||||||
$.after(root, threadContainer);
|
$.after(root, threadContainer);
|
||||||
} else {
|
} else {
|
||||||
threadContainer = root.nextSibling;
|
threadContainer = root.nextSibling;
|
||||||
post = Get.postFromRoot($.x('child::div[contains(@class,"postContainer")][last()]', threadContainer));
|
post = Get.postFromRoot($.x('descendant::div[contains(@class,"postContainer")][last()]', threadContainer));
|
||||||
}
|
}
|
||||||
$.add(threadContainer, this.nodes.root);
|
$.add(threadContainer, this.nodes.root);
|
||||||
if (!Conf['Unread Count'] || this.ID < Unread.lastReadPost) {
|
if (!Conf['Unread Count'] || this.ID < Unread.lastReadPost) {
|
||||||
@ -5041,12 +5044,12 @@
|
|||||||
}
|
}
|
||||||
if (posts[post.ID]) {
|
if (posts[post.ID]) {
|
||||||
posts.after(post, this);
|
posts.after(post, this);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if ((ID = posts.closest(post.ID)) !== -1) {
|
||||||
|
posts.after(posts[ID], this);
|
||||||
} else {
|
} else {
|
||||||
if ((ID = posts.closest(post.ID)) !== -1) {
|
posts.prepend(this);
|
||||||
posts.after(posts[ID], this);
|
|
||||||
} else {
|
|
||||||
posts.prepend(this);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
|
|||||||
@ -4,6 +4,7 @@ class RandomAccessList
|
|||||||
|
|
||||||
push: (item) ->
|
push: (item) ->
|
||||||
{ID} = item
|
{ID} = item
|
||||||
|
return if @[ID]
|
||||||
{last} = @
|
{last} = @
|
||||||
item.prev = last
|
item.prev = last
|
||||||
@[ID] = item
|
@[ID] = item
|
||||||
|
|||||||
@ -72,7 +72,7 @@ QuoteThreading =
|
|||||||
posts.push @ if Conf['Unread Count']
|
posts.push @ if Conf['Unread Count']
|
||||||
return false
|
return false
|
||||||
|
|
||||||
root = post.nodes.root
|
{root} = post.nodes
|
||||||
unless $.hasClass root, 'threadOP'
|
unless $.hasClass root, 'threadOP'
|
||||||
$.addClass root, 'threadOP'
|
$.addClass root, 'threadOP'
|
||||||
threadContainer = $.el 'div',
|
threadContainer = $.el 'div',
|
||||||
@ -80,7 +80,7 @@ QuoteThreading =
|
|||||||
$.after root, threadContainer
|
$.after root, threadContainer
|
||||||
else
|
else
|
||||||
threadContainer = root.nextSibling
|
threadContainer = root.nextSibling
|
||||||
post = Get.postFromRoot $.x 'child::div[contains(@class,"postContainer")][last()]', threadContainer
|
post = Get.postFromRoot $.x 'descendant::div[contains(@class,"postContainer")][last()]', threadContainer
|
||||||
|
|
||||||
$.add threadContainer, @nodes.root
|
$.add threadContainer, @nodes.root
|
||||||
|
|
||||||
@ -92,11 +92,12 @@ QuoteThreading =
|
|||||||
|
|
||||||
if posts[post.ID]
|
if posts[post.ID]
|
||||||
posts.after post, @
|
posts.after post, @
|
||||||
|
return true
|
||||||
|
|
||||||
|
if (ID = posts.closest post.ID) isnt -1
|
||||||
|
posts.after posts[ID], @
|
||||||
else
|
else
|
||||||
if (ID = posts.closest post.ID) isnt -1
|
posts.prepend @
|
||||||
posts.after posts[ID], @
|
|
||||||
else
|
|
||||||
posts.prepend @
|
|
||||||
|
|
||||||
return true
|
return true
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user