Revert 3 unread-related commits. #968
This reverts commits: - c49c201d91de6484e07c07650619d7924b192ffb - f95acfd134a9ed14d4293b1fb0896566d3c4721c - 846efbd013a5e8bb6e4361c842b20da10b17f587
This commit is contained in:
parent
be92325ee4
commit
e37216e274
@ -3554,8 +3554,8 @@ ThreadExcerpt =
|
|||||||
name: 'Thread Excerpt'
|
name: 'Thread Excerpt'
|
||||||
cb: @node
|
cb: @node
|
||||||
node: ->
|
node: ->
|
||||||
d.title = if (excerpt = Get.threadExcerpt @).length > 80
|
d.title = if (excerpt = Get.threadExcerpt @).length > 50
|
||||||
"#{excerpt[...77]}..."
|
"#{excerpt[...47]}..."
|
||||||
else
|
else
|
||||||
excerpt
|
excerpt
|
||||||
|
|
||||||
@ -3575,7 +3575,6 @@ Unread =
|
|||||||
Unread.lastReadPost = $.get("lastReadPosts.#{@board}", threads: {}).threads[@] or 0
|
Unread.lastReadPost = $.get("lastReadPosts.#{@board}", threads: {}).threads[@] or 0
|
||||||
Unread.posts = []
|
Unread.posts = []
|
||||||
Unread.postsQuotingYou = []
|
Unread.postsQuotingYou = []
|
||||||
Unread.titleEl = $ 'title', d.head
|
|
||||||
Unread.title = d.title
|
Unread.title = d.title
|
||||||
posts = []
|
posts = []
|
||||||
for ID, post of @posts
|
for ID, post of @posts
|
||||||
@ -3657,17 +3656,10 @@ Unread =
|
|||||||
count = Unread.posts.length
|
count = Unread.posts.length
|
||||||
|
|
||||||
if Conf['Unread Count']
|
if Conf['Unread Count']
|
||||||
prefix = if count
|
d.title = if g.DEAD
|
||||||
"(#{count})"
|
"(#{Unread.posts.length}) /#{g.BOARD}/ - 404"
|
||||||
else
|
else
|
||||||
''
|
"(#{Unread.posts.length}) #{Unread.title}"
|
||||||
# XXX Chrome bug where it doesn't always update the tab title.
|
|
||||||
# crbug.com/16650
|
|
||||||
# crbug.com/124381
|
|
||||||
Unread.titleEl.textContent = if g.DEAD
|
|
||||||
"#{prefix} /#{g.BOARD}/ - 404"
|
|
||||||
else
|
|
||||||
"#{prefix} #{Unread.title}"
|
|
||||||
|
|
||||||
return unless Conf['Unread Tab Icon']
|
return unless Conf['Unread Tab Icon']
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user