fixed issues with the random button and hotkeys #2

Merged
eins merged 3 commits from eins/f0bm:f0bm into f0bm 2026-01-23 14:53:20 +00:00
6 changed files with 91 additions and 82 deletions
Showing only changes of commit c74e5a7402 - Show all commits

1
.gitignore vendored
View File

@@ -8,3 +8,4 @@ deleted/b
deleted/ca
deleted/t
tmp/*
tools

View File

@@ -187,13 +187,12 @@ window.requestAnimFrame = (function () {
};
const changePage = (e, pbwork = true) => {
if (e.tagName === 'A') {
e.preventDefault();
loadItemAjax(e.href);
} else {
pbwork && document.querySelector("nav.navbar").classList.add("pbwork");
!tt && (tt = setTimeout(() => e.click(), stimeout));
if (pbwork) {
const nav = document.querySelector("nav.navbar");
if (nav) nav.classList.add("pbwork");
}
// Trigger native click for navigation
e.click();
};
// Intercept clicks