mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
24 lines
540 B
JavaScript
24 lines
540 B
JavaScript
if (isIframe())
|
|
{
|
|
return;
|
|
}
|
|
const supportedUrls = [
|
|
"/www.bilibili.com",
|
|
];
|
|
if (!supportedUrls.some(it => document.URL.includes(it)))
|
|
{
|
|
return;
|
|
}
|
|
(async () =>
|
|
{
|
|
const html = await import("customNavbarHtml");
|
|
document.body.insertAdjacentHTML("beforeend", html);
|
|
const navbar = document.querySelector(".custom-navbar");
|
|
for (const [className, enabled] of Object.entries(settings.customNavbarSettings))
|
|
{
|
|
if (enabled === true)
|
|
{
|
|
navbar.classList.add(className);
|
|
}
|
|
}
|
|
})(); |