From bef9ac1d5cceb150847ed0e5f06e99838fa5b39b Mon Sep 17 00:00:00 2001 From: ebinBuddha <30810167+ebinBuddha@users.noreply.github.com> Date: Sun, 14 Apr 2019 00:18:52 +0200 Subject: [PATCH] added Config for PostJumper --- src/Miscellaneous/PostJumper.coffee | 4 ++-- src/config/Config.coffee | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/Miscellaneous/PostJumper.coffee b/src/Miscellaneous/PostJumper.coffee index e8f7ef89b..ec98468d7 100644 --- a/src/Miscellaneous/PostJumper.coffee +++ b/src/Miscellaneous/PostJumper.coffee @@ -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 diff --git a/src/config/Config.coffee b/src/config/Config.coffee index f4ddc3dae..fec89d1ac 100644 --- a/src/config/Config.coffee +++ b/src/config/Config.coffee @@ -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.'