From f02688bd0aa5018565292b3c892af73704fee35c Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Tue, 21 Feb 2012 15:10:35 +0100 Subject: [PATCH] Let the filter add more than one highlight class. --- 4chan_x.user.js | 1 + script.coffee | 2 ++ 2 files changed, 3 insertions(+) diff --git a/4chan_x.user.js b/4chan_x.user.js index cb9926cc9..47a47776f 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -576,6 +576,7 @@ $.before(firstThread.parentNode, [thisThread, thisThread.nextElementSibling]); } } + return false; } else if (isOP) { if (!g.REPLY) threadHiding.hideHide(root.parentNode); } else { diff --git a/script.coffee b/script.coffee index d9b59f856..ef0b5c4c6 100644 --- a/script.coffee +++ b/script.coffee @@ -491,6 +491,8 @@ filter = # ...before the first non highlighted thread. if firstThread = $ 'div[class=op]' $.before firstThread.parentNode, [thisThread, thisThread.nextElementSibling] + # Continue the filter lookup to add more classes or hide it. + return false else if isOP unless g.REPLY threadHiding.hideHide root.parentNode