Skip to content

Commit b5c5b7e

Browse files
committed
优化 模式 3 在 B 站视频的显示问题
1 parent 8640b68 commit b5c5b7e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

DarkMode.user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ==UserScript==
22
// @name 护眼模式
3-
// @version 1.3.4
3+
// @version 1.3.5
44
// @author X.I.U
55
// @description 简单有效的全网通用护眼模式(夜间模式、暗黑模式、深色模式)
66
// @match *://*/*
@@ -369,7 +369,7 @@
369369
break;
370370
case 3:
371371
style += style_31;
372-
if (location.hostname.indexOf('.bilibili.com') > -1) {style += `#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 {box-shadow: none !important;} * {font-weight: bold !important;}`}
372+
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;}`}
373373
break;
374374
}
375375
style_Add.id = 'XIU2DarkMode';

0 commit comments

Comments
 (0)