This commit is contained in:
xing 2025-03-29 20:19:20 +08:00
parent de16f18b11
commit c163d9b5de

View File

@ -1,7 +1,7 @@
// ==UserScript==
// @name tieba page
// @namespace http://tampermonkey.net/
// @version 1.026
// @version 1.027
// @author fthvgb1
// @match https://tieba.baidu.com/*
// @match https://tiebac.baidu.com/*
@ -1247,17 +1247,7 @@
document.querySelector('body').appendChild(d);
}
if (document.readyState === "loading") {
document.addEventListener("DOMContentLoaded", () => {
startFn();
});
} else {
startFn();
}
const startFn = () => {
try {
if (!check()) {
return;
}
@ -1302,6 +1292,5 @@
} catch (e) {
console.log(e)
}
}
})();