aboutsummaryrefslogtreecommitdiff
path: root/p/scripts
diff options
context:
space:
mode:
authorGravatar maTh <1645099+math-GH@users.noreply.github.com> 2024-08-28 00:03:26 +0200
committerGravatar GitHub <noreply@github.com> 2024-08-28 00:03:26 +0200
commitf672b826d6b7e8416c1ff0025a06976423ef44de (patch)
tree382349b08d0cdf1f25dc27491a44674fe7eb2b69 /p/scripts
parente8f066b4c2e53728b46edb592e4fc5937fcee96c (diff)
fixed: Shortcut keys for moving between categories (#6741)
Diffstat (limited to 'p/scripts')
-rw-r--r--p/scripts/main.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/p/scripts/main.js b/p/scripts/main.js
index 88586dc27..a907532b3 100644
--- a/p/scripts/main.js
+++ b/p/scripts/main.js
@@ -605,7 +605,7 @@ function prev_category() {
do cat = cat.previousElementSibling;
while (cat && getComputedStyle(cat).display === 'none');
if (cat) {
- delayedClick(cat.querySelector('a.title'));
+ delayedClick(cat.querySelector('a.tree-folder-title'));
}
} else {
last_category();
@@ -619,7 +619,7 @@ function next_category() {
do cat = cat.nextElementSibling;
while (cat && getComputedStyle(cat).display === 'none');
if (cat) {
- delayedClick(cat.querySelector('a.title'));
+ delayedClick(cat.querySelector('a.tree-folder-title'));
}
} else {
first_category();
@@ -633,7 +633,7 @@ function next_unread_category() {
do cat = cat.nextElementSibling;
while (cat && cat.getAttribute('data-unread') <= 0);
if (cat) {
- delayedClick(cat.querySelector('a.title'));
+ delayedClick(cat.querySelector('a.tree-folder-title'));
}
} else {
first_category();
@@ -641,12 +641,12 @@ function next_unread_category() {
}
function first_category() {
- const a = document.querySelector('#aside_feed .category:not([data-unread="0"]) a.title');
+ const a = document.querySelector('#aside_feed .category:not([data-unread="0"]) a.tree-folder-title');
delayedClick(a);
}
function last_category() {
- const links = document.querySelectorAll('#aside_feed .category:not([data-unread="0"]) a.title');
+ const links = document.querySelectorAll('#aside_feed .category:not([data-unread="0"]) a.tree-folder-title');
if (links && links.length > 0) {
delayedClick(links[links.length - 1]);
}