mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
13 lines
433 B
JavaScript
13 lines
433 B
JavaScript
const suitableSites = [
|
|
"https://www.bilibili.com/",
|
|
"https://www.bilibili.com/watchlater/#/list",
|
|
];
|
|
if (suitableSites.indexOf(location.href.replace(location.search, '')) !== -1)
|
|
{
|
|
document.body.classList.add("compact");
|
|
if (!settings.useDarkStyle)
|
|
{
|
|
document.body.classList.add("light");
|
|
}
|
|
addSettingsListener("useDarkStyle", dark => document.body.classList[dark ? "remove" : "add"]("light"));
|
|
} |