From 734eeae827e277aef3ebac59143919e5f0ce3f78 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Mon, 20 Feb 2012 18:15:47 +0100 Subject: [PATCH] Fix quoting the OP didn't select the thread ID. --- 4chan_x.user.js | 2 +- script.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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..]