From 3066be24af73d37ee2b9ca5973eb680b52b0841b Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Mon, 26 Sep 2011 03:43:34 +0200 Subject: [PATCH] Changelog, less parentheses. --- changelog | 1 + script.coffee | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/changelog b/changelog index f6a862e9a..a22a7ac8c 100644 --- a/changelog +++ b/changelog @@ -3,6 +3,7 @@ master initiate 4chan X earlier automatically reload expanded pictures on error update /sci/ archive redirection + Regular expressions based filter 2.20.1 - mayhem diff --git a/script.coffee b/script.coffee index 7db6ee694..762a3c28a 100644 --- a/script.coffee +++ b/script.coffee @@ -410,10 +410,10 @@ filter = if callback root threadHiding.hideHide root.parentNode return - else unless root.classList.contains('inline') + else unless root.classList.contains 'inline' for callback in filter.callbacks if callback root - replyHiding.hideHide $('td:not([nowrap])', root) + replyHiding.hideHide $ 'td:not([nowrap])', root return test: (key, value) -> for regexp in filter.regexps[key] @@ -423,10 +423,10 @@ filter = if (name = if root.className is 'op' then $('.postername', root).textContent else $('.commentpostername', root).textContent) filter.test 'name', name trip: (root) -> - if trip = $('.postertrip', root) + if trip = $ '.postertrip', root filter.test 'trip', trip.textContent mail: (root) -> - if mail = $('.linkmail', root) + if mail = $ '.linkmail', root filter.test 'mail', mail.href sub: (root) -> if (sub = if root.className is 'op' then $('.filetitle', root).textContent else $('.replytitle', root).textContent)