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: cb:
openAll: -> openAll: ->
return if $.hasClass @, 'disabled' return if $.hasClass @, 'disabled'
for a in $$ 'a[title]', ThreadWatcher.list for a in $$ 'a.watcher-link', ThreadWatcher.list
$.open a.href $.open a.href
$.event 'CloseMenu' $.event 'CloseMenu'
openUnread: -> openUnread: ->
return if $.hasClass @, 'disabled' 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 $.open a.href
$.event 'CloseMenu' $.event 'CloseMenu'
openDeads: -> openDeads: ->
return if $.hasClass @, 'disabled' return if $.hasClass @, 'disabled'
for a in $$ 'a[title]', ThreadWatcher.list for a in $$ '.dead-thread > a.watcher-link', ThreadWatcher.list
if a.parentNode.classList.contains("dead-thread") $.open a.href
$.open a.href
$.event 'CloseMenu' $.event 'CloseMenu'
pruneDeads: -> pruneDeads: ->
return if $.hasClass @, 'disabled' return if $.hasClass @, 'disabled'