diff --git a/4chan_x.user.js b/4chan_x.user.js index 3dbbd9c71..e2477bcc2 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2394,7 +2394,7 @@ if (this.classList.contains('inlined')) { quoteInline.rm(this, id); } else { - if ($.x('ancestor::td[@id]', this).id === id) { + if ($.x("ancestor::*[@id='" + id + "']", this)) { return; } quoteInline.add(this, id); diff --git a/script.coffee b/script.coffee index 3944ab484..cb894658b 100644 --- a/script.coffee +++ b/script.coffee @@ -1789,7 +1789,7 @@ quoteInline = if @classList.contains 'inlined' quoteInline.rm @, id else - return if $.x('ancestor::td[@id]', @).id is id + return if $.x("ancestor::*[@id='#{id}']", @) quoteInline.add @, id @classList.toggle 'inlined'