commit
df2af31393
@ -15,7 +15,7 @@
|
||||
"*://i.4cdn.org/*"
|
||||
],
|
||||
"min": {
|
||||
"chrome": "31",
|
||||
"chrome": "32",
|
||||
"firefox": "26",
|
||||
"greasemonkey": "1.14"
|
||||
}
|
||||
|
||||
@ -154,22 +154,11 @@ Unread =
|
||||
if $.x 'preceding-sibling::div[contains(@class,"replyContainer")]', post.nodes.root # not the first reply
|
||||
$.before post.nodes.root, Unread.hr
|
||||
|
||||
update: <% if (type === 'crx') { %>(dontrepeat) <% } %>->
|
||||
update: ->
|
||||
count = Unread.posts.length
|
||||
|
||||
if Conf['Unread Count']
|
||||
d.title = "#{if count or !Conf['Hide Unread Count at (0)'] then "(#{count}) " else ''}#{if g.DEAD then Unread.title.replace '-', '- 404 -' else Unread.title}"
|
||||
<% if (type === 'crx') { %>
|
||||
# XXX Chrome bug where it doesn't always update the tab title.
|
||||
# crbug.com/124381
|
||||
# Call it one second later,
|
||||
# but don't display outdated unread count.
|
||||
return if dontrepeat
|
||||
setTimeout ->
|
||||
d.title = ''
|
||||
Unread.update true
|
||||
, $.SECOND
|
||||
<% } %>
|
||||
|
||||
return unless Conf['Unread Tab Icon']
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user