diff --git a/4chan_x.user.js b/4chan_x.user.js index 36bbb6df5..a444bf560 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1200,7 +1200,10 @@ link = $.el('h1', { innerHTML: "" + (g.REPLY ? 'Open the Quick Reply' : 'Create a New Thread') + "" }); - $.on($('a', link), 'click', qr.open); + $.on($('a', link), 'click', function() { + qr.open(); + return $('textarea', qr.el).focus(); + }); form = d.forms[0]; $.before(form, link); } diff --git a/script.coffee b/script.coffee index fc433cde4..fc99afd59 100644 --- a/script.coffee +++ b/script.coffee @@ -867,7 +867,9 @@ qr = 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 + $.on $('a', link), 'click', -> + qr.open() + $('textarea', qr.el).focus() form = d.forms[0] $.before form, link g.callbacks.push (root) ->