Skip to content

Commit f40ed9f

Browse files
committed
优化 模式3 在 B站 的显示效果
1 parent 470b22a commit f40ed9f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

DarkMode.user.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ==UserScript==
22
// @name 护眼模式
3-
// @version 1.3.2
3+
// @version 1.3.3
44
// @author X.I.U
55
// @description 简单有效的全网通用护眼模式(夜间模式、暗黑模式、深色模式)
66
// @match *://*/*
@@ -335,8 +335,8 @@
335335
style_21_firefox = `html {filter: brightness(${style_20[0]}%) sepia(${style_20[1]}%) !important; background-image: url();}`,
336336
style_22 = `html {filter: brightness(${style_20[2]}%) sepia(${style_20[3]}%) !important;}`,
337337
style_22_firefox = `html {filter: brightness(${style_20[2]}%) sepia(${style_20[3]}%) !important; background-image: url();}`,
338-
style_31 = `html {filter: invert(${style_30[0]}%) !important;} img, video, [style*="background"][style*="url"] {filter: invert(1) !important;} .mode-fullscreen video, img[alt="[公式]"] {filter: none !important;}`,
339-
style_31_firefox = `html {filter: invert(${style_30[0]}%) !important; background-image: url();} img, video, [style*="background"][style*="url"] {filter: invert(1) !important;} .mode-fullscreen video, img[alt="[公式]"] {filter: none !important;}`;
338+
style_31 = `html {filter: invert(${style_30[0]}%) !important;} img, video, [style*="background"][style*="url"], #bilibiliPlayer:not(.mode-fullscreen), #bilibiliPlayer:not(.mode-fullscreen) .bilibili-player-video-sendbar {filter: invert(1) !important;} img[alt="[公式]"] {filter: none !important;}`,
339+
style_31_firefox = `html {filter: invert(${style_30[0]}%) !important; background-image: url();} img, video, [style*="background"][style*="url"], #bilibiliPlayer:not(.mode-fullscreen), #bilibiliPlayer:not(.mode-fullscreen) .bilibili-player-video-sendbar {filter: invert(1) !important;} img[alt="[公式]"] {filter: none !important;}`;
340340

341341
// Firefox 浏览器需要特殊对待
342342
if (navigator.userAgent.toLowerCase().indexOf('firefox') > -1) {

0 commit comments

Comments
 (0)