diff --git a/src/General/Config.coffee b/src/General/Config.coffee index 6d6fcdd13..ef4a23063 100755 --- a/src/General/Config.coffee +++ b/src/General/Config.coffee @@ -315,6 +315,10 @@ Config = false 'Remember the spoiler state, instead of resetting after posting.' ] + 'Show New Thread Option in Threads': [ + false + 'Show the option to post a new thread from inside a thread.' + ] 'Show Name and Subject': [ false 'Show the classic name, email, and subject fields in the QR, even when 4chan doesn\'t use them all.' diff --git a/src/General/css/style.css b/src/General/css/style.css index 6dd5ffa7a..38beeff4b 100755 --- a/src/General/css/style.css +++ b/src/General/css/style.css @@ -809,6 +809,7 @@ span.hide-announcement { :root.hide-original-post-form #togglePostFormLink, :root:not(.catalog) #togglePostFormLink, #qr.autohide:not(.focus):not(:hover):not(:active) > form, +:root.thread-view #qr select[data-name=thread], #file-n-submit:not(.has-file) #qr-filerm { display: none; } diff --git a/src/Posting/QR.coffee b/src/Posting/QR.coffee index 7388cdaeb..4c6d2b8c1 100644 --- a/src/Posting/QR.coffee +++ b/src/Posting/QR.coffee @@ -469,6 +469,9 @@ QR = QR.max_width_video = QR.max_height_video = 2048 QR.max_duration_video = 120 + if Conf['Show New Thread Option in Threads'] + $.addClass QR.nodes.el, 'show-new-thread-option' + if Conf['Show Name and Subject'] $.addClass QR.nodes.name, 'force-show' $.addClass QR.nodes.sub, 'force-show'