diff --git a/4chan_x.user.js b/4chan_x.user.js index 88c6e345e..1ae193ba1 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -612,24 +612,16 @@ strikethroughQuotes = { init: function() { return g.callbacks.push(function(root) { - var el, quote, _i, _len, _ref, _results; + var el, quote, _i, _len, _ref; if (root.className === 'inline') return; _ref = $$('.quotelink', root); - _results = []; for (_i = 0, _len = _ref.length; _i < _len; _i++) { quote = _ref[_i]; if ((el = $.id(quote.hash.slice(1))) && el.parentNode.parentNode.parentNode.hidden) { $.addClass(quote, 'filtered'); - if (conf['Recursive Filtering']) { - _results.push(root.hidden = true); - } else { - _results.push(void 0); - } - } else { - _results.push(void 0); + if (conf['Recursive Filtering']) root.hidden = true; } } - return _results; }); } }; diff --git a/script.coffee b/script.coffee index 4cf0d2113..3606d51bb 100644 --- a/script.coffee +++ b/script.coffee @@ -460,6 +460,7 @@ strikethroughQuotes = if (el = $.id quote.hash[1..]) and el.parentNode.parentNode.parentNode.hidden $.addClass quote, 'filtered' root.hidden = true if conf['Recursive Filtering'] + return expandComment = init: ->