Don't add the line in newly opened threads. #932

This commit is contained in:
Nicolas Stepien 2013-03-10 02:25:46 +01:00
parent 234beec07d
commit 357f943b7f
2 changed files with 5 additions and 5 deletions

View File

@ -20,7 +20,7 @@
// @icon data:image/gif;base64,R0lGODlhEAAQAKECAAAAAGbMM////////yH5BAEKAAIALAAAAAAQABAAAAIxlI+pq+D9DAgUoFkPDlbs7lGiI2bSVnKglnJMOL6omczxVZK3dH/41AG6Lh7i6qUoAAA7 // @icon data:image/gif;base64,R0lGODlhEAAQAKECAAAAAGbMM////////yH5BAEKAAIALAAAAAAQABAAAAIxlI+pq+D9DAgUoFkPDlbs7lGiI2bSVnKglnJMOL6omczxVZK3dH/41AG6Lh7i6qUoAAA7
// ==/UserScript== // ==/UserScript==
/* 4chan X Beta - Version 3.0.0 - 2013-03-09 /* 4chan X Beta - Version 3.0.0 - 2013-03-10
* http://mayhemydg.github.com/4chan-x/ * http://mayhemydg.github.com/4chan-x/
* *
* Copyright (c) 2009-2011 James Campos <james.r.campos@gmail.com> * Copyright (c) 2009-2011 James Campos <james.r.campos@gmail.com>
@ -5216,9 +5216,9 @@
Unread.addPostQuotingYou(post, yourPosts); Unread.addPostQuotingYou(post, yourPosts);
} }
} }
Unread.setLine((_ref = Unread.posts[0], __indexOf.call(newPosts, _ref) >= 0));
Unread.read(); Unread.read();
Unread.update(); return Unread.update();
return Unread.setLine((_ref = Unread.posts[0], __indexOf.call(newPosts, _ref) >= 0));
}, },
addPostQuotingYou: function(post, yourPosts) { addPostQuotingYou: function(post, yourPosts) {
var board, postIDs, quote, quoteID, thread, _i, _len, _ref, _ref1, _ref2; var board, postIDs, quote, quoteID, thread, _i, _len, _ref, _ref1, _ref2;

View File

@ -3482,10 +3482,10 @@ Unread =
continue continue
Unread.posts.push post Unread.posts.push post
Unread.addPostQuotingYou post, yourPosts if yourPosts Unread.addPostQuotingYou post, yourPosts if yourPosts
Unread.read()
Unread.update()
# Force line on visible threads if there were no unread posts previously. # Force line on visible threads if there were no unread posts previously.
Unread.setLine Unread.posts[0] in newPosts Unread.setLine Unread.posts[0] in newPosts
Unread.read()
Unread.update()
addPostQuotingYou: (post, yourPosts) -> addPostQuotingYou: (post, yourPosts) ->
for quote in post.quotes for quote in post.quotes