diff --git a/4chan_x.user.js b/4chan_x.user.js index e365c8737..b523ccaa5 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1379,7 +1379,7 @@ if (e != null) e.preventDefault(); qr.open(); if (!g.REPLY) { - $('select', qr.el).value = $.x('ancestor::div', this).firstChild.id; + $('select', qr.el).value = $.x('ancestor::div[@class="thread"]', this).firstChild.id; } id = this.previousElementSibling.hash.slice(1); text = ">>" + id + "\n"; diff --git a/script.coffee b/script.coffee index 0b8a6c988..99dddba86 100644 --- a/script.coffee +++ b/script.coffee @@ -1023,7 +1023,7 @@ qr = e?.preventDefault() qr.open() unless g.REPLY - $('select', qr.el).value = $.x('ancestor::div', @).firstChild.id + $('select', qr.el).value = $.x('ancestor::div[@class="thread"]', @).firstChild.id # Make sure we get the correct number, even with XXX censors id = @previousElementSibling.hash[1..]