-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
65 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,24 @@ | ||
样式美化 | 自定义背景 | 大幅度修改, ["www.bilibili.com"], { | ||
(美化总开关)样式美化 & 自定义背景等, ["www.bilibili.com"], { | ||
'已开启$on': () => { | ||
if (location.href === 'https://www.bilibili.com/' && $get('bilibili_beautify_work_on_index', 'on') === 'off') return; | ||
|
||
if ($get('bilibili_eye_protection_cover', 'on') === 'on') { | ||
style('html,:root{--bodybackground: ' + | ||
(window.matchMedia("(prefers-color-scheme: dark)").matches | ||
? $get('bilibili_eye_protection_cover_dark', `rgb(0 0 0 / 23%)`) | ||
: $get('bilibili_eye_protection_cover_light', `rgb(102 204 255 / 23%)`)) + '}' | ||
? $get('bilibili_eye_protection_cover_dark', `rgb(0 0 0 / 23%)`) | ||
: $get('bilibili_eye_protection_cover_light', `rgb(102 204 255 / 23%)`)) + '}' | ||
) | ||
} else { | ||
style('html,:root{--bodybackground:transparent}') | ||
} | ||
|
||
style(`html,:root{--background:url(${$get('bilibili_background_value')})}`) | ||
|
||
if ($get('bilibili_video_radius', 'on') === 'on') { | ||
style($SASS('beautify.video.sass')) | ||
} | ||
if ($get('bilibili_background', 'on') === 'on') { | ||
style($SASS('beautify.background.sass')) | ||
style(`html,:root{--background:url(${$get('bilibili_background_value')})}`) | ||
} | ||
return $SASS('beautify.sass') | ||
}, '已关闭$off': null, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
html,:root | ||
body | ||
// 视频上圆角 | ||
video | ||
border-radius: 4px 4px 0 0 | ||
.bpx-player-video-area | ||
border-radius: 4px 4px 0 0 | ||
|
||
// 播放器背景 | ||
#bilibili-player-placeholder | ||
box-shadow: 0 -2px 4px 1px rgba(255,255,255,0.1) | ||
border-radius: 4px 4px 12px 12px | ||
|
||
#bilibili-player-placeholder-top | ||
border-radius: 4px 4px 0 0 | ||
background: transparent !important | ||
#bilibili-player-placeholder-bottom | ||
border-radius: 0 0 12px 12px |