From 8bc82be67796b5e27b28b4c4225648fa29c91e92 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Sat, 17 Mar 2012 13:18:32 +0100 Subject: [PATCH] Fix >>>/board/id still displayed as filtered after unhiding its linked post. --- 4chan_x.user.js | 2 +- script.coffee | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index c3d0ab3fd..1c9089fba 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -905,7 +905,7 @@ table.hidden = false; $.rm(parent); id = table.firstChild.firstChild.lastChild.id; - _ref2 = $$(".quotelink[href='#" + id + "'], .backlink[href='#" + id + "']"); + _ref2 = $$(".quotelink[href$='#" + id + "'], .backlink[href='#" + id + "']"); for (_j = 0, _len2 = _ref2.length; _j < _len2; _j++) { quote = _ref2[_j]; $.removeClass(quote, 'filtered'); diff --git a/script.coffee b/script.coffee index 30146cef2..f295c56d8 100644 --- a/script.coffee +++ b/script.coffee @@ -524,7 +524,7 @@ Filter = node: (post) -> return if post.isInlined - post.isOP = post.class is 'op' + post.isOP = post.class is 'op' {isOP, el} = post for key of Filter.filters value = Filter[key] post @@ -769,7 +769,7 @@ ReplyHiding = table.hidden = false $.rm parent id = table.firstChild.firstChild.lastChild.id - for quote in $$ ".quotelink[href='##{id}'], .backlink[href='##{id}']" + for quote in $$ ".quotelink[href$='##{id}'], .backlink[href='##{id}']" $.removeClass quote, 'filtered' delete g.hiddenReplies[id] $.set "hiddenReplies/#{g.BOARD}/", g.hiddenReplies