From 661c2871cbe8c39edd202d2dbea0cd78158edec3 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Mon, 10 Oct 2011 21:04:58 +0200 Subject: [PATCH] Fix, OPs do not have ancestor tables. --- 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 5560803f3..1f4abe1d4 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -2432,7 +2432,7 @@ _ref = $$('input', table); for (_i = 0, _len = _ref.length; _i < _len; _i++) { inlined = _ref[_i]; - if (hidden = $.id(inlined.name)) { + if (!(hidden = $.id(inlined.name)).classList.contains('op')) { $.x('ancestor::table[1]', hidden).hidden = false; } } diff --git a/script.coffee b/script.coffee index 10317a696..e2b717301 100644 --- a/script.coffee +++ b/script.coffee @@ -1816,7 +1816,7 @@ quoteInline = #select the corresponding table or loading td table = $.x "following::*[@id='i#{id}']", q for inlined in $$ 'input', table - if hidden = $.id inlined.name + unless (hidden = $.id inlined.name).classList.contains 'op' $.x('ancestor::table[1]', hidden).hidden = false $.rm table