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