From f6f1f2293c0ed37ddd0a43df8929edfa264ae659 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Tue, 21 Feb 2012 02:22:08 +0100 Subject: [PATCH] Fix op filtering only. --- 4chan_x.user.js | 2 +- script.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index a66c387ca..52edf26ee 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -562,7 +562,7 @@ }, createFilter: function(regexp, op, hl) { return function(root, value, isOP) { - if (isOP && op === 'no' || op === 'only') return false; + if (isOP && op === 'no' || !isOP && op === 'only') return false; if (!regexp.test(value)) return false; if (hl) { $.addClass(root, 'filter_highlight'); diff --git a/script.coffee b/script.coffee index 6cb960952..71d20df85 100644 --- a/script.coffee +++ b/script.coffee @@ -454,7 +454,7 @@ filter = createFilter: (regexp, op, hl) -> (root, value, isOP) -> - if isOP and op is 'no' or op is 'only' + if isOP and op is 'no' or !isOP and op is 'only' return false unless regexp.test value return false