re-hide thread selector in threads (now optionally)

This commit is contained in:
ccd0 2014-09-04 15:40:30 -07:00
parent 7b060d9119
commit 7b4404ecf3
3 changed files with 8 additions and 0 deletions

View File

@ -315,6 +315,10 @@ Config =
false false
'Remember the spoiler state, instead of resetting after posting.' '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': [ 'Show Name and Subject': [
false false
'Show the classic name, email, and subject fields in the QR, even when 4chan doesn\'t use them all.' 'Show the classic name, email, and subject fields in the QR, even when 4chan doesn\'t use them all.'

View File

@ -809,6 +809,7 @@ span.hide-announcement {
:root.hide-original-post-form #togglePostFormLink, :root.hide-original-post-form #togglePostFormLink,
:root:not(.catalog) #togglePostFormLink, :root:not(.catalog) #togglePostFormLink,
#qr.autohide:not(.focus):not(:hover):not(:active) > form, #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 { #file-n-submit:not(.has-file) #qr-filerm {
display: none; display: none;
} }

View File

@ -469,6 +469,9 @@ QR =
QR.max_width_video = QR.max_height_video = 2048 QR.max_width_video = QR.max_height_video = 2048
QR.max_duration_video = 120 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'] if Conf['Show Name and Subject']
$.addClass QR.nodes.name, 'force-show' $.addClass QR.nodes.name, 'force-show'
$.addClass QR.nodes.sub, 'force-show' $.addClass QR.nodes.sub, 'force-show'