Skip to content

Commit 81142d9

Browse files
committed
优化 模式 3 虎牙直播显示效果
1 parent 76cc85e commit 81142d9

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

DarkMode.user.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// @name:zh-CN 护眼模式
44
// @name:zh-TW 護眼模式
55
// @name:en Dark Mode
6-
// @version 1.4.0
6+
// @version 1.4.1
77
// @author X.I.U
88
// @description 简单有效的全网通用护眼模式(夜间模式、暗黑模式、深色模式)
99
// @description:zh-CN 简单有效的全网通用护眼模式(夜间模式、暗黑模式、深色模式)
@@ -392,7 +392,11 @@
392392
break;
393393
case 3:
394394
style += style_31;
395-
if (location.hostname.indexOf('.bilibili.com') > -1) {style += `#bilibiliPlayer video {filter: none !important;} #bilibiliPlayer:not(.mode-fullscreen), #bilibiliPlayer:not(.mode-fullscreen) .bilibili-player-video-sendbar {filter: invert(1) !important;} .bilibili-player.bilibili-player-area-v1, .bilibili-player.bilibili-player-area-v3, #bilibiliPlayer {box-shadow: none !important;} * {font-weight: bold !important;}`}
395+
if (location.hostname.indexOf('.bilibili.com') > -1) {
396+
style += `#bilibiliPlayer video {filter: none !important;} #bilibiliPlayer:not(.mode-fullscreen), #bilibiliPlayer:not(.mode-fullscreen) .bilibili-player-video-sendbar {filter: invert(1) !important;} .bilibili-player.bilibili-player-area-v1, .bilibili-player.bilibili-player-area-v3, #bilibiliPlayer {box-shadow: none !important;} * {font-weight: bold !important;}`
397+
} else if (location.hostname.indexOf('.huya.com') > -1) {
398+
style += `#player-wrap[style="height: 100%;"], .player-loading, .sidebar-show, #player-ctrl-wrap {filter: invert(1) !important;}`
399+
}
396400
break;
397401
}
398402
style_Add.id = 'XIU2DarkMode';

0 commit comments

Comments
 (0)