|
335 | 335 | style_21_firefox = `html {filter: brightness(${style_20[0]}%) sepia(${style_20[1]}%) !important; background-image: url();}`, |
336 | 336 | style_22 = `html {filter: brightness(${style_20[2]}%) sepia(${style_20[3]}%) !important;}`, |
337 | 337 | 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;} |
339 | | -img, video, [style*="background"][style*="url"], #bilibiliPlayer:not(.mode-fullscreen), #bilibiliPlayer:not(.mode-fullscreen) .bilibili-player-video-sendbar {filter: invert(1) !important;} |
340 | | -img[alt="[公式]"] {filter: none !important;} |
341 | | -.bilibili-player.bilibili-player-area-v1, .bilibili-player.bilibili-player-area-v3 {box-shadow: none !important;}`, |
342 | | - style_31_firefox = `html {filter: invert(${style_30[0]}%) !important; background-image: url();} |
343 | | -img, video, [style*="background"][style*="url"], #bilibiliPlayer:not(.mode-fullscreen), #bilibiliPlayer:not(.mode-fullscreen) .bilibili-player-video-sendbar {filter: invert(1) !important;} |
344 | | -img[alt="[公式]"] {filter: none !important;} |
345 | | -.bilibili-player.bilibili-player-area-v1, .bilibili-player.bilibili-player-area-v3 {box-shadow: none !important;}`; |
| 338 | + style_31 = `html {filter: invert(${style_30[0]}%) !important;} img, video, [style*="background"][style*="url"] {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"] {filter: invert(1) !important;} img[alt="[公式]"] {filter: none !important;}`; |
346 | 340 |
|
347 | 341 | // Firefox 浏览器需要特殊对待 |
348 | 342 | if (navigator.userAgent.toLowerCase().indexOf('firefox') > -1) { |
@@ -375,6 +369,7 @@ img[alt="[公式]"] {filter: none !important;} |
375 | 369 | break; |
376 | 370 | case 3: |
377 | 371 | 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;}`} |
378 | 373 | break; |
379 | 374 | } |
380 | 375 | style_Add.id = 'XIU2DarkMode'; |
|
0 commit comments