diff --git a/4chan_x.user.js b/4chan_x.user.js index d7668f557..f133f26d6 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1059,7 +1059,6 @@ } else { qr.open(); } - if (!g.REPLY) qr.pickThread(thread.firstChild.id); return $('textarea', qr.el).focus(); }, open: function(thread, tab) { @@ -1323,15 +1322,12 @@ return qr.status(); } }, - pickThread: function(thread) { - return $('select', qr.el).value = thread; - }, quote: function(e) { var caretPos, id, s, sel, ta, text, _ref; if (e != null) e.preventDefault(); qr.open(); if (!g.REPLY) { - qr.pickThread($.x('ancestor::div[@class="thread"]/div', this).id); + $('select', qr.el).value = $.x('ancestor::div[@class="thread"]/div', this).id; } id = this.textContent; text = ">>" + id + "\n"; diff --git a/script.coffee b/script.coffee index a8232f7ff..0dd979b3b 100644 --- a/script.coffee +++ b/script.coffee @@ -748,7 +748,6 @@ keybinds = qr.quote.call $ '.quotejs + .quotejs', $('.replyhl', thread) or thread else qr.open() - qr.pickThread thread.firstChild.id unless g.REPLY $('textarea', qr.el).focus() open: (thread, tab) -> @@ -959,13 +958,11 @@ qr = qr.submit() if qr.cooldown.auto qr.status() - pickThread: (thread) -> - $('select', qr.el).value = thread - quote: (e) -> e?.preventDefault() qr.open() - qr.pickThread $.x('ancestor::div[@class="thread"]/div', @).id unless g.REPLY + unless g.REPLY + $('select', qr.el).value = $.x('ancestor::div[@class="thread"]/div', @).id id = @textContent text = ">>#{id}\n"