mirror of
https://github.com/the1812/Bilibili-Evolved.git
synced 2025-11-04 21:22:45 +08:00
Support unload / reload
This commit is contained in:
parent
e7a1a435ac
commit
7a903c2041
File diff suppressed because one or more lines are too long
@ -37,6 +37,9 @@ body {
|
||||
--home-color: #eee;
|
||||
--home-card-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.2);
|
||||
}
|
||||
body.home-redesign-off & {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
html {
|
||||
scroll-behavior: smooth;
|
||||
|
||||
@ -36,6 +36,8 @@ export const component: ComponentMetadata = {
|
||||
defaultValue: false,
|
||||
},
|
||||
},
|
||||
unload: () => document.body.classList.add('home-redesign-off'),
|
||||
reload: () => document.body.classList.remove('home-redesign-off'),
|
||||
instantStyles: [
|
||||
{
|
||||
name: 'fresh-home-hide-original',
|
||||
|
||||
Loading…
Reference in New Issue
Block a user