blob: f7b117a48f47547c5a42684b56e9928253b753dd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// Copy of menu.ts without timeouts or notifications
(function () {
const viewport = document.querySelector("#viewport");
const root = document.querySelector("#root");
const bookmarkJewel = document.querySelector("#bookmarks_jewel");
if (!viewport || !root || !bookmarkJewel) {
console.log('Menu.js: main elements not found');
Frost.emit(0);
return
}
const menuA = bookmarkJewel.querySelector("a");
if (!menuA) {
console.log('Menu.js: menu links not found');
Frost.emit(0);
return
}
const jewel = document.querySelector('#mJewelNav');
if (!jewel) {
console.log('Menu.js: jewel is null');
return
}
menuA.click();
}).call(undefined);
|