Restore if statement

This commit is contained in:
Jordan Bates 2013-05-05 22:31:58 -07:00
parent bea9b6caf2
commit a718f012d8
5 changed files with 14 additions and 8 deletions

View File

@ -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

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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.