Changelog, less parentheses.

This commit is contained in:
Nicolas Stepien 2011-09-26 03:43:34 +02:00
parent d327605729
commit 3066be24af
2 changed files with 5 additions and 4 deletions

View File

@ -3,6 +3,7 @@ master
initiate 4chan X earlier initiate 4chan X earlier
automatically reload expanded pictures on error automatically reload expanded pictures on error
update /sci/ archive redirection update /sci/ archive redirection
Regular expressions based filter
2.20.1 2.20.1
- mayhem - mayhem

View File

@ -410,10 +410,10 @@ filter =
if callback root if callback root
threadHiding.hideHide root.parentNode threadHiding.hideHide root.parentNode
return return
else unless root.classList.contains('inline') else unless root.classList.contains 'inline'
for callback in filter.callbacks for callback in filter.callbacks
if callback root if callback root
replyHiding.hideHide $('td:not([nowrap])', root) replyHiding.hideHide $ 'td:not([nowrap])', root
return return
test: (key, value) -> test: (key, value) ->
for regexp in filter.regexps[key] 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) if (name = if root.className is 'op' then $('.postername', root).textContent else $('.commentpostername', root).textContent)
filter.test 'name', name filter.test 'name', name
trip: (root) -> trip: (root) ->
if trip = $('.postertrip', root) if trip = $ '.postertrip', root
filter.test 'trip', trip.textContent filter.test 'trip', trip.textContent
mail: (root) -> mail: (root) ->
if mail = $('.linkmail', root) if mail = $ '.linkmail', root
filter.test 'mail', mail.href filter.test 'mail', mail.href
sub: (root) -> sub: (root) ->
if (sub = if root.className is 'op' then $('.filetitle', root).textContent else $('.replytitle', root).textContent) if (sub = if root.className is 'op' then $('.filetitle', root).textContent else $('.replytitle', root).textContent)