diff --git a/src/General/Config.coffee b/src/General/Config.coffee index 8086abf7d..f0b3d768d 100755 --- a/src/General/Config.coffee +++ b/src/General/Config.coffee @@ -319,6 +319,10 @@ Config = false 'Remember the spoiler state, instead of resetting after posting.' ] + 'Show Name and Subject': [ + false + 'Always show name and subject fields in the QR even when 4chan doesn\'t use them.' + ] 'Hide Original Post Form': [ true 'Hide the normal post form.' diff --git a/src/General/css/style.css b/src/General/css/style.css index 5f4b01c16..6aba42060 100755 --- a/src/General/css/style.css +++ b/src/General/css/style.css @@ -869,9 +869,9 @@ span.hide-announcement { flex: 1; width: 0; } -#qr.forced-anon input[data-name=name], -#qr.forced-anon input[data-name=sub], -#qr.reply-to-thread input[data-name=sub] { +#qr.forced-anon input[data-name=name]:not(.force-show), +#qr.forced-anon input[data-name=sub]:not(.force-show), +#qr.reply-to-thread input[data-name=sub]:not(.force-show) { display: none; } #qr textarea.field { diff --git a/src/Posting/QR.coffee b/src/Posting/QR.coffee index 91666fe17..783256732 100644 --- a/src/Posting/QR.coffee +++ b/src/Posting/QR.coffee @@ -475,6 +475,10 @@ QR = QR.max_width_video = QR.max_height_video = 2048 QR.max_duration_video = 120 + if Conf['Show Name and Subject'] + $.addClass QR.nodes.name, 'force-show' + $.addClass QR.nodes.sub, 'force-show' + QR.forcedAnon = !!$ '.postForm input[name=name][type=hidden]' if QR.forcedAnon $.addClass QR.nodes.el, 'forced-anon'