blob: 9649bea26215f7f3db6df7bd3abd2e44d7d8b729 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
var a;
function betterlibrary() {
if (a == undefined)
try {
a = document.getElementsByClassName("main-yourLibraryX-libraryContainer")[0];
console.log("setting a");
} catch (error) {
}
try {
setTimeout(() => {
document.getElementsByClassName("betterlibheader")[0].prepend(a);
// document.getElementsByClassName("main-yourLibraryX-entryPoints")[0].appendChild(a);
}, 100);
console.log("did not catch");
} catch (error) {
console.log("catch!!");
console.error(error);
}
}
|