diff --git a/4chan_x.user.js b/4chan_x.user.js index 4194ce531..de85e93b8 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -851,6 +851,7 @@ hideHide: function(reply) { var a, div, name, table, trip, _ref; table = reply.parentNode.parentNode.parentNode; + if (table.hidden) return; table.hidden = true; if (conf['Show Stubs']) { name = $('.commentpostername', reply).textContent; @@ -1857,6 +1858,7 @@ hideHide: function(thread) { var a, div, name, num, span, text, trip, _ref; if (conf['Show Stubs']) { + if (/stub/.test(thread.className)) return; if (span = $('.omittedposts', thread)) { num = Number(span.textContent.match(/\d+/)[0]); } else { diff --git a/script.coffee b/script.coffee index 550f78a0b..c35d949bd 100644 --- a/script.coffee +++ b/script.coffee @@ -607,6 +607,8 @@ replyHiding = hideHide: (reply) -> table = reply.parentNode.parentNode.parentNode + return if table.hidden #already hidden by filter + table.hidden = true if conf['Show Stubs'] @@ -1460,6 +1462,7 @@ threadHiding = hideHide: (thread) -> if conf['Show Stubs'] + return if /stub/.test thread.className #already hidden by filter if span = $ '.omittedposts', thread num = Number span.textContent.match(/\d+/)[0] else