Remove the unread count when there are no unread posts.
Also make the thread excerpt longer.
This commit is contained in:
parent
f95acfd134
commit
846efbd013
@ -3534,8 +3534,8 @@ ThreadExcerpt =
|
|||||||
name: 'Thread Excerpt'
|
name: 'Thread Excerpt'
|
||||||
cb: @node
|
cb: @node
|
||||||
node: ->
|
node: ->
|
||||||
d.title = if (excerpt = Get.threadExcerpt @).length > 50
|
d.title = if (excerpt = Get.threadExcerpt @).length > 80
|
||||||
"#{excerpt[...47]}..."
|
"#{excerpt[...77]}..."
|
||||||
else
|
else
|
||||||
excerpt
|
excerpt
|
||||||
|
|
||||||
@ -3637,12 +3637,17 @@ Unread =
|
|||||||
count = Unread.posts.length
|
count = Unread.posts.length
|
||||||
|
|
||||||
if Conf['Unread Count']
|
if Conf['Unread Count']
|
||||||
|
prefix = if count
|
||||||
|
"(#{count})"
|
||||||
|
else
|
||||||
|
''
|
||||||
# XXX Chrome bug where it doesn't always update the tab title.
|
# XXX Chrome bug where it doesn't always update the tab title.
|
||||||
|
# crbug.com/16650
|
||||||
# crbug.com/124381
|
# crbug.com/124381
|
||||||
Unread.titleEl.textContent = if g.DEAD
|
Unread.titleEl.textContent = if g.DEAD
|
||||||
"(#{Unread.posts.length}) /#{g.BOARD}/ - 404"
|
"#{prefix} /#{g.BOARD}/ - 404"
|
||||||
else
|
else
|
||||||
"(#{Unread.posts.length}) #{Unread.title}"
|
"#{prefix} #{Unread.title}"
|
||||||
|
|
||||||
return unless Conf['Unread Tab Icon']
|
return unless Conf['Unread Tab Icon']
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user