Make site prefix optional, behind 'Show Site Prefix' preference in thread watcher menu.

This commit is contained in:
ccd0 2018-12-05 13:22:36 -08:00
parent aa67e1b58b
commit e0ae7daaac
2 changed files with 6 additions and 2 deletions

View File

@ -308,7 +308,7 @@ ThreadWatcher =
{excerpt} = data
excerpt or= "/#{boardID}/ - No.#{threadID}"
excerpt = ThreadWatcher.prefixes[siteID] + excerpt
excerpt = ThreadWatcher.prefixes[siteID] + excerpt if Conf['Show Site Prefix']
link = $.el 'a',
href: SW[software]?.urls.thread({siteID, boardID, threadID}) or ''
@ -528,6 +528,6 @@ ThreadWatcher =
$.addClass entry.el, 'disabled'
entry.el.title += '\n[Remember Last Read Post is disabled.]'
$.on input, 'change', $.cb.checked
$.on input, 'change', ThreadWatcher.refresh if name in ['Current Board', 'Show Unread Count']
$.on input, 'change', ThreadWatcher.refresh if name in ['Current Board', 'Show Unread Count', 'Show Site Prefix']
$.on input, 'change', ThreadWatcher.fetchAuto if name in ['Show Unread Count', 'Auto Update Thread Watcher']
entry

View File

@ -676,6 +676,10 @@ Config =
true
'Show number of unread posts in watched threads.'
]
'Show Site Prefix': [
true
'When multiple sites are shown in the thread watcher, add a prefix to board names to distinguish them.'
]
'Require OP Quote Link': [
false
'For purposes of thread watcher highlighting, only consider posts with a quote link to the OP as replies to the OP.'