added Config for PostJumper

This commit is contained in:
ebinBuddha 2019-04-14 00:18:52 +02:00
parent 4ed808feef
commit bef9ac1d5c
2 changed files with 10 additions and 2 deletions

View File

@ -9,7 +9,7 @@ PostJumper =
cb: @node
node: ->
if @nodes.uniqueIDRoot
if @nodes.uniqueIDRoot and Conf['Unique ID Navigation']
uniqueID = @nodes.uniqueID.innerText
IDButtons = PostJumper.makeButtons 'uniqueIDJumper'
$.after @nodes.uniqueIDRoot, IDButtons
@ -19,7 +19,7 @@ PostJumper =
PostJumper.uniqueIDsMap.set uniqueID, []
PostJumper.uniqueIDsMap.get(uniqueID).push @nodes.quote.innerText
if @nodes.capcode
if @nodes.capcode and Conf['Capcode Navigation']
capcode = @nodes.capcode.innerText
capcodeButtons = PostJumper.makeButtons 'capcodeJumper'
$.after @nodes.capcode, capcodeButtons

View File

@ -92,6 +92,14 @@ Config =
false
'Add buttons to navigate to top / bottom of thread.'
]
'Unique ID Navigation': [
false
'Add buttons to navigate to posts having the same unique ID.'
]
'Capcode Navigation': [
false
'Add buttons to navigate to posts having the same capcode.'
]
'Custom Board Titles': [
true
'Allow editing of the board title and subtitle by ctrl/\u2318+clicking them.'