From 22b1e7f3c132b4a018f16c6f01897a03e5285f86 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Thu, 7 Mar 2013 21:30:49 +0100 Subject: [PATCH] Filter both OPs and replies by default. --- 4chan_x.user.js | 4 ++-- src/features.coffee | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index c07d413a9..6aba7f3c6 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -1495,7 +1495,7 @@ $.add(div, ta); return; } - return div.innerHTML = "
Filter is disabled.
\n

\n Use regular expressions, one per line.
\n Lines starting with a # will be ignored.
\n For example, /weeaboo/i will filter posts containing the string `weeaboo`, case-insensitive.
\n MD5 filtering uses exact string matching, not regular expressions.\n

\n"; + return div.innerHTML = "
Filter is disabled.
\n

\n Use regular expressions, one per line.
\n Lines starting with a # will be ignored.
\n For example, /weeaboo/i will filter posts containing the string `weeaboo`, case-insensitive.
\n MD5 filtering uses exact string matching, not regular expressions.\n

\n"; }, sauce: function(section) { var sauce; @@ -1705,7 +1705,7 @@ continue; } } - op = ((_ref3 = filter.match(/[^t]op:(yes|no|only)/)) != null ? _ref3[1] : void 0) || 'no'; + op = ((_ref3 = filter.match(/[^t]op:(yes|no|only)/)) != null ? _ref3[1] : void 0) || 'yes'; stub = (function() { var _ref4; switch ((_ref4 = filter.match(/stub:(yes|no)/)) != null ? _ref4[1] : void 0) { diff --git a/src/features.coffee b/src/features.coffee index 3ebf53fb2..55d9a37ae 100644 --- a/src/features.coffee +++ b/src/features.coffee @@ -423,7 +423,7 @@ Settings = For example: boards:a,jp;.
  • - Filter OPs only along with their threads (`only`), replies only (`no`, this is default), or both (`yes`).
    + Filter OPs only along with their threads (`only`), replies only (`no`), or both (`yes`, this is default).
    For example: op:only;, op:no; or op:yes;.
  • @@ -662,8 +662,8 @@ Filter = continue # Filter OPs along with their threads, replies only, or both. - # Defaults to replies only. - op = filter.match(/[^t]op:(yes|no|only)/)?[1] or 'no' + # Defaults to both. + op = filter.match(/[^t]op:(yes|no|only)/)?[1] or 'yes' # Overrule the `Show Stubs` setting. # Defaults to stub showing.