Remove 'Hide Original Post Form' option; show toggle for original form in smaller font. #600
This commit is contained in:
parent
2d390d0a0f
commit
599804dbd2
@ -455,11 +455,6 @@ Config =
|
|||||||
'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.'
|
||||||
1
|
1
|
||||||
]
|
]
|
||||||
'Hide Original Post Form': [
|
|
||||||
true
|
|
||||||
'Hide the normal post form.'
|
|
||||||
1
|
|
||||||
]
|
|
||||||
'Cooldown': [
|
'Cooldown': [
|
||||||
true
|
true
|
||||||
'Indicate the remaining time before posting again.'
|
'Indicate the remaining time before posting again.'
|
||||||
|
|||||||
@ -1,7 +1,6 @@
|
|||||||
Captcha.replace =
|
Captcha.replace =
|
||||||
init: ->
|
init: ->
|
||||||
return unless d.cookie.indexOf('pass_enabled=1') < 0
|
return unless d.cookie.indexOf('pass_enabled=1') < 0
|
||||||
return if location.hostname is 'boards.4chan.org' and Conf['Hide Original Post Form']
|
|
||||||
|
|
||||||
if Conf['Force Noscript Captcha'] and Main.jsEnabled
|
if Conf['Force Noscript Captcha'] and Main.jsEnabled
|
||||||
$.ready Captcha.replace.noscript
|
$.ready Captcha.replace.noscript
|
||||||
|
|||||||
@ -57,12 +57,6 @@ QR =
|
|||||||
|
|
||||||
Header.addShortcut sc
|
Header.addShortcut sc
|
||||||
|
|
||||||
if Conf['Hide Original Post Form']
|
|
||||||
$.addClass doc, 'hide-original-post-form'
|
|
||||||
unless Main.jsEnabled
|
|
||||||
# Prevent unnecessary loading of fallback iframe.
|
|
||||||
$.onExists doc, '#postForm noscript', true, $.rm
|
|
||||||
|
|
||||||
initReady: ->
|
initReady: ->
|
||||||
$.off d, '4chanXInitFinished', @initReady
|
$.off d, '4chanXInitFinished', @initReady
|
||||||
QR.postingIsEnabled = !!$.id 'postForm'
|
QR.postingIsEnabled = !!$.id 'postForm'
|
||||||
@ -88,7 +82,9 @@ QR =
|
|||||||
|
|
||||||
$.prepend $('.navLinksBot'), linkBot
|
$.prepend $('.navLinksBot'), linkBot
|
||||||
|
|
||||||
$.before $.id('togglePostFormLink'), link
|
origToggle = $.id 'togglePostFormLink'
|
||||||
|
$.before origToggle, link
|
||||||
|
origToggle.firstElementChild.textContent = 'Original Form'
|
||||||
|
|
||||||
$.on d, 'QRGetFile', QR.getFile
|
$.on d, 'QRGetFile', QR.getFile
|
||||||
$.on d, 'QRSetFile', QR.setFile
|
$.on d, 'QRSetFile', QR.setFile
|
||||||
|
|||||||
@ -1212,6 +1212,7 @@ input[name="Default Volume"] {
|
|||||||
}
|
}
|
||||||
.qr-link-container {
|
.qr-link-container {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
margin: 16px 0;
|
||||||
}
|
}
|
||||||
.qr-link-container-bottom {
|
.qr-link-container-bottom {
|
||||||
width: 200px;
|
width: 200px;
|
||||||
@ -1229,6 +1230,11 @@ input[name="Default Volume"] {
|
|||||||
border-width: 1px;
|
border-width: 1px;
|
||||||
font-size: 10pt;
|
font-size: 10pt;
|
||||||
}
|
}
|
||||||
|
.qr-link-container + #togglePostFormLink {
|
||||||
|
font-size: 10pt;
|
||||||
|
font-weight: normal;
|
||||||
|
margin: -8px 0 3.5px;
|
||||||
|
}
|
||||||
.persona {
|
.persona {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: -webkit-flex;
|
display: -webkit-flex;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user