From d31b18cc82ac227b2df370fbd894210c187abd23 Mon Sep 17 00:00:00 2001 From: Zixaphir Date: Sun, 5 Jan 2014 10:45:14 -0700 Subject: [PATCH] Build? da fuq? --- builds/4chan-X.user.js | 13 ++++--------- builds/crx/script.js | 13 ++++--------- 2 files changed, 8 insertions(+), 18 deletions(-) diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 609dadbac..69f9c020e 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -9546,19 +9546,14 @@ return; } Unread.lastReadPost = lastReadPost; - Unread.readArray(Unread.posts); post = Unread.posts.first; while (post) { - if (post.ID > Unread.lastReadPost) { - break; - } - ID = post.ID; - if (!post.next) { + if ((ID = post.ID, post) > Unread.lastReadPost) { break; } post = post.next; + Unread.posts.rm(ID); } - Unread.posts.splice(0, ID); Unread.readArray(Unread.postsQuotingYou); if (Conf['Unread Line']) { Unread.setLine(); @@ -9647,7 +9642,7 @@ if (!Unread.posts[ID]) { return; } - Unread.posts.splice(ID(post.next.ID)); + Unread.posts.rm(ID); if (post === Unread.posts.first) { Unread.lastReadPost = ID; Unread.saveLastReadPost(); @@ -9684,6 +9679,7 @@ } } post = post.next; + posts.rm(ID); } else { break; } @@ -9691,7 +9687,6 @@ if (!ID) { return; } - posts.splice(0, ID); if (Unread.lastReadPost < ID || !Unread.lastReadPost) { Unread.lastReadPost = ID; } diff --git a/builds/crx/script.js b/builds/crx/script.js index ed950692f..2891e2a7a 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -9529,19 +9529,14 @@ return; } Unread.lastReadPost = lastReadPost; - Unread.readArray(Unread.posts); post = Unread.posts.first; while (post) { - if (post.ID > Unread.lastReadPost) { - break; - } - ID = post.ID; - if (!post.next) { + if ((ID = post.ID, post) > Unread.lastReadPost) { break; } post = post.next; + Unread.posts.rm(ID); } - Unread.posts.splice(0, ID); Unread.readArray(Unread.postsQuotingYou); if (Conf['Unread Line']) { Unread.setLine(); @@ -9630,7 +9625,7 @@ if (!Unread.posts[ID]) { return; } - Unread.posts.splice(ID(post.next.ID)); + Unread.posts.rm(ID); if (post === Unread.posts.first) { Unread.lastReadPost = ID; Unread.saveLastReadPost(); @@ -9667,6 +9662,7 @@ } } post = post.next; + posts.rm(ID); } else { break; } @@ -9674,7 +9670,6 @@ if (!ID) { return; } - posts.splice(0, ID); if (Unread.lastReadPost < ID || !Unread.lastReadPost) { Unread.lastReadPost = ID; }