feat: . shortcut to show new items (#2612)

This commit is contained in:
patak 2024-02-24 15:46:54 +01:00 committed by GitHub
parent 082650d458
commit 3769176eaa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 16 additions and 2 deletions

View file

@ -55,4 +55,12 @@ export default defineNuxtPlugin(({ $scrollToTop }) => {
?.click()
}
whenever(logicAnd(isAuthenticated, notUsingInput, keys.b), toggleBoostActiveStatus)
const showNewItems = () => {
// TODO: find a better solution than clicking buttons...
document
?.querySelector<HTMLElement>('button#elk_show_new_items')
?.click()
}
whenever(logicAnd(isAuthenticated, notUsingInput, keys['.']), showNewItems)
})