Clean up selectors for Thread Watcher open thread links.

This commit is contained in:
ccd0 2021-05-08 07:38:34 -07:00
parent 096086cc28
commit 227bd828f8

View File

@ -123,19 +123,18 @@ ThreadWatcher =
cb:
openAll: ->
return if $.hasClass @, 'disabled'
for a in $$ 'a[title]', ThreadWatcher.list
for a in $$ 'a.watcher-link', ThreadWatcher.list
$.open a.href
$.event 'CloseMenu'
openUnread: ->
return if $.hasClass @, 'disabled'
for a in $$ '.replies-unread a[title]', ThreadWatcher.list
for a in $$ '.replies-unread > a.watcher-link', ThreadWatcher.list
$.open a.href
$.event 'CloseMenu'
openDeads: ->
return if $.hasClass @, 'disabled'
for a in $$ 'a[title]', ThreadWatcher.list
if a.parentNode.classList.contains("dead-thread")
$.open a.href
for a in $$ '.dead-thread > a.watcher-link', ThreadWatcher.list
$.open a.href
$.event 'CloseMenu'
pruneDeads: ->
return if $.hasClass @, 'disabled'