Restore if statement
This commit is contained in:
parent
bea9b6caf2
commit
a718f012d8
2
LICENSE
2
LICENSE
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* 4chan X - Version 1.1.11 - 2013-05-04
|
||||
* 4chan X - Version 1.1.11 - 2013-05-05
|
||||
*
|
||||
* Licensed under the MIT license.
|
||||
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
// @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAACVBMVEUAAGcAAABmzDNZt9VtAAAAAXRSTlMAQObYZgAAAHFJREFUKFOt0LENACEIBdBv4Qju4wgWanEj3D6OcIVMKaitYHEU/jwTCQj8W75kiVCSBvdQ5/AvfVHBin11BgdRq3ysBgfwBDRrj3MCIA+oAQaku/Q1cNctrAmyDl577tOThYt/Y1RBM4DgOHzM0HFTAyLukH/cmRnqAAAAAElFTkSuQmCC
|
||||
// ==/UserScript==
|
||||
/*
|
||||
* 4chan X - Version 1.1.11 - 2013-05-04
|
||||
* 4chan X - Version 1.1.11 - 2013-05-05
|
||||
*
|
||||
* Licensed under the MIT license.
|
||||
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
|
||||
@ -7356,7 +7356,9 @@
|
||||
}
|
||||
}
|
||||
Unread.addPosts(posts);
|
||||
return Unread.scroll();
|
||||
if (Conf['Scroll to Last Read Post']) {
|
||||
return Unread.scroll();
|
||||
}
|
||||
},
|
||||
scroll: function() {
|
||||
var hash, post, posts, prevID, root;
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
// @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAACVBMVEUAAGcAAABmzDNZt9VtAAAAAXRSTlMAQObYZgAAAHFJREFUKFOt0LENACEIBdBv4Qju4wgWanEj3D6OcIVMKaitYHEU/jwTCQj8W75kiVCSBvdQ5/AvfVHBin11BgdRq3ysBgfwBDRrj3MCIA+oAQaku/Q1cNctrAmyDl577tOThYt/Y1RBM4DgOHzM0HFTAyLukH/cmRnqAAAAAElFTkSuQmCC
|
||||
// ==/UserScript==
|
||||
/*
|
||||
* 4chan X - Version 1.1.11 - 2013-05-04
|
||||
* 4chan X - Version 1.1.11 - 2013-05-05
|
||||
*
|
||||
* Licensed under the MIT license.
|
||||
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
|
||||
@ -7377,7 +7377,9 @@
|
||||
}
|
||||
}
|
||||
Unread.addPosts(posts);
|
||||
return Unread.scroll();
|
||||
if (Conf['Scroll to Last Read Post']) {
|
||||
return Unread.scroll();
|
||||
}
|
||||
},
|
||||
scroll: function() {
|
||||
var hash, post, posts, prevID, root;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* 4chan X - Version 1.1.11 - 2013-05-04
|
||||
* 4chan X - Version 1.1.11 - 2013-05-05
|
||||
*
|
||||
* Licensed under the MIT license.
|
||||
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
|
||||
@ -7355,7 +7355,9 @@
|
||||
}
|
||||
}
|
||||
Unread.addPosts(posts);
|
||||
return Unread.scroll();
|
||||
if (Conf['Scroll to Last Read Post']) {
|
||||
return Unread.scroll();
|
||||
}
|
||||
},
|
||||
scroll: function() {
|
||||
var hash, post, posts, prevID, root;
|
||||
|
||||
@ -30,7 +30,7 @@ Unread =
|
||||
for ID, post of Unread.thread.posts
|
||||
posts.push post if post.isReply
|
||||
Unread.addPosts posts
|
||||
Unread.scroll()
|
||||
Unread.scroll() if Conf['Scroll to Last Read Post']
|
||||
|
||||
scroll: ->
|
||||
# Let the header's onload callback handle it.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user