diff --git a/src/General/Config.coffee b/src/General/Config.coffee index 734d2f427..5a430716b 100755 --- a/src/General/Config.coffee +++ b/src/General/Config.coffee @@ -277,7 +277,11 @@ Config = ] 'Thread Excerpt': [ true - 'Show an excerpt of the thread in the tab title.' + 'Show an excerpt of the thread in the tab title for threads in /f/.' + ] + 'Remove Thread Excerpt': [ + false + 'Replace the excerpt of the thread in the tab title with the board title.' ] 'Thread Stats': [ true diff --git a/src/Miscellaneous/Banner.coffee b/src/Miscellaneous/Banner.coffee index 7e8173972..6f45eae37 100644 --- a/src/Miscellaneous/Banner.coffee +++ b/src/Miscellaneous/Banner.coffee @@ -7,6 +7,9 @@ Banner = banner = $ ".boardBanner" {children} = banner + if g.BOARD.ID isnt 'f' and g.VIEW is 'thread' and Conf['Remove Thread Excerpt'] + Banner.setTitle children[1].textContent + i = 0 while child = children[i++] if i is 1 @@ -24,6 +27,13 @@ Banner = return + setTitle: (title) -> + if Unread.title? + Unread.title = title + Unread.update() + else + d.title = title + cb: toggle: do -> types = diff --git a/src/Monitoring/ThreadExcerpt.coffee b/src/Monitoring/ThreadExcerpt.coffee index 0c3e7e12f..29148362d 100755 --- a/src/Monitoring/ThreadExcerpt.coffee +++ b/src/Monitoring/ThreadExcerpt.coffee @@ -1,6 +1,6 @@ ThreadExcerpt = init: -> - return if g.VIEW isnt 'thread' or !Conf['Thread Excerpt'] + return if g.BOARD.ID isnt 'f' or g.VIEW isnt 'thread' or !Conf['Thread Excerpt'] Thread.callbacks.push name: 'Thread Excerpt'