mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
20 lines
528 B
JavaScript
20 lines
528 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");
|
|
}
|
|
export default {
|
|
reload: () =>
|
|
{
|
|
document.body.classList.add("compact");
|
|
resources.applyImportantStyle("compactLayoutStyle");
|
|
},
|
|
unload: () =>
|
|
{
|
|
document.body.classList.remove("compact");
|
|
resources.removeStyle("compactLayoutStyle");
|
|
}
|
|
} |