Don't show unread line in index when last read post is OP and some posts are omitted.
This commit is contained in:
parent
460bc87a5a
commit
6969f4a8cf
@ -64,7 +64,7 @@ UnreadIndex =
|
|||||||
firstUnread = post
|
firstUnread = post
|
||||||
|
|
||||||
hr = UnreadIndex.hr[thread.fullID]
|
hr = UnreadIndex.hr[thread.fullID]
|
||||||
if firstUnread and (repliesRead or lastReadPost is thread.OP.ID)
|
if firstUnread and (repliesRead or (lastReadPost is thread.OP.ID and (!$(Site.selectors.summary, thread.nodes.root) or thread.ID of ExpandThread.statuses)))
|
||||||
if !hr
|
if !hr
|
||||||
hr = UnreadIndex.hr[thread.fullID] = $.el 'hr',
|
hr = UnreadIndex.hr[thread.fullID] = $.el 'hr',
|
||||||
className: 'unread-line'
|
className: 'unread-line'
|
||||||
|
|||||||
@ -54,6 +54,7 @@ SW.tinyboard =
|
|||||||
board: 'form[name="postcontrols"]'
|
board: 'form[name="postcontrols"]'
|
||||||
thread: 'div[id^="thread_"]'
|
thread: 'div[id^="thread_"]'
|
||||||
threadDivider: 'div[id^="thread_"] > hr:last-of-type'
|
threadDivider: 'div[id^="thread_"] > hr:last-of-type'
|
||||||
|
summary: '.omitted'
|
||||||
postContainer: '.reply' # postContainer is thread for OP
|
postContainer: '.reply' # postContainer is thread for OP
|
||||||
infoRoot: '.intro'
|
infoRoot: '.intro'
|
||||||
info:
|
info:
|
||||||
|
|||||||
@ -8,6 +8,7 @@ SW.yotsuba =
|
|||||||
board: '.board'
|
board: '.board'
|
||||||
thread: '.thread'
|
thread: '.thread'
|
||||||
threadDivider: '.board > hr'
|
threadDivider: '.board > hr'
|
||||||
|
summary: '.summary'
|
||||||
postContainer: '.postContainer'
|
postContainer: '.postContainer'
|
||||||
sideArrows: '.sideArrows'
|
sideArrows: '.sideArrows'
|
||||||
post: '.post'
|
post: '.post'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user