From bce07659a0842e8c26b1a20daee15a731cf5063f Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Tue, 1 May 2012 16:54:55 +0200 Subject: [PATCH] Fix Recursive Filtering and strikethroughing quotes. --- 4chan_x.user.js | 4 ++-- script.coffee | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index 1c5760817..12b8edfd3 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -745,10 +745,10 @@ _ref = post.quotes; for (_i = 0, _len = _ref.length; _i < _len; _i++) { quote = _ref[_i]; - if ((el = $.id(quote.hash.slice(1))) && el.parentNode.parentNode.parentNode.hidden) { + if ((el = $.id(quote.hash.slice(1))) && el.hidden) { $.addClass(quote, 'filtered'); if (Conf['Recursive Filtering']) { - ReplyHiding.hide(post.root); + ReplyHiding.hide(post.root.firstElementChild); } } } diff --git a/script.coffee b/script.coffee index 020c4f4e8..cb1b14feb 100644 --- a/script.coffee +++ b/script.coffee @@ -599,9 +599,9 @@ StrikethroughQuotes = node: (post) -> return if post.isInlined for quote in post.quotes - if (el = $.id quote.hash[1..]) and el.parentNode.parentNode.parentNode.hidden + if (el = $.id quote.hash[1..]) and el.hidden $.addClass quote, 'filtered' - ReplyHiding.hide post.root if Conf['Recursive Filtering'] + ReplyHiding.hide post.root.firstElementChild if Conf['Recursive Filtering'] return ExpandComment =