diff --git a/4chan_x.user.js b/4chan_x.user.js
index 3c0a62ea3..8a274de2f 100644
--- a/4chan_x.user.js
+++ b/4chan_x.user.js
@@ -117,7 +117,8 @@
'Persistent QR': [false, 'The Quick reply won\'t disappear after posting.'],
'Auto Hide QR': [true, 'Automatically hide the quick reply when posting.'],
'Remember Subject': [false, 'Remember the subject field, instead of resetting after posting.'],
- 'Remember Spoiler': [false, 'Remember the spoiler state, instead of resetting after posting.']
+ 'Remember Spoiler': [false, 'Remember the spoiler state, instead of resetting after posting.'],
+ 'Hide Original Post Form': [true, 'Replace the normal post form with a shortcut to open the QR.']
},
Quoting: {
'Quote Backlinks': [true, 'Add quote backlinks'],
@@ -1200,8 +1201,17 @@
qr = {
init: function() {
- var iframe, loadChecking;
+ var form, iframe, link, loadChecking;
if (!$.id('recaptcha_challenge_field_holder')) return;
+ if (conf['Hide Original Post Form']) {
+ link = $.el('h1', {
+ innerHTML: "" + (g.REPLY ? 'Open the Quick Reply' : 'Create a New Thread') + ""
+ });
+ $.on($('a', link), 'click', qr.open);
+ form = d.forms[0];
+ form.hidden = true;
+ $.before(form, link);
+ }
g.callbacks.push(function(root) {
return $.on($('.quotejs + .quotejs', root), 'click', qr.quote);
});
diff --git a/changelog b/changelog
index abe57db4c..16f4827aa 100644
--- a/changelog
+++ b/changelog
@@ -1,4 +1,6 @@
master
+- Mayhem
+ Hide the normal post form by default, optional.
2.25.4
- Mayhem
diff --git a/script.coffee b/script.coffee
index dcd1862fe..bf592066b 100644
--- a/script.coffee
+++ b/script.coffee
@@ -38,6 +38,7 @@ config =
'Auto Hide QR': [true, 'Automatically hide the quick reply when posting.']
'Remember Subject': [false, 'Remember the subject field, instead of resetting after posting.']
'Remember Spoiler': [false, 'Remember the spoiler state, instead of resetting after posting.']
+ 'Hide Original Post Form': [true, 'Replace the normal post form with a shortcut to open the QR.']
Quoting:
'Quote Backlinks': [true, 'Add quote backlinks']
'OP Backlinks': [false, 'Add backlinks to the OP']
@@ -862,6 +863,12 @@ nav =
qr =
init: ->
return unless $.id 'recaptcha_challenge_field_holder'
+ if conf['Hide Original Post Form']
+ link = $.el 'h1', innerHTML: "#{if g.REPLY then 'Open the Quick Reply' else 'Create a New Thread'}"
+ $.on $('a', link), 'click', qr.open
+ form = d.forms[0]
+ form.hidden = true
+ $.before form, link
g.callbacks.push (root) ->
$.on $('.quotejs + .quotejs', root), 'click', qr.quote