Last active
August 11, 2022 01:44
-
-
Save thallium/bcd3634f8835527b2d11582337699cc3 to your computer and use it in GitHub Desktop.
disable bilibili background image
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
@media (prefers-color-scheme: dark) { | |
body { | |
background-color: rgb(24, 26, 27) !important; | |
background-image: none !important; | |
} | |
.fixed-bg[data-v-d112ac46] { | |
background-color: rgb(24, 26, 27) !important; | |
background-image: none !important; | |
} | |
} | |
@media (prefers-color-scheme: light) { | |
body { | |
background-color: #d8dee9 !important; | |
background-image: none !important; | |
} | |
.fixed-bg[data-v-d112ac46] { | |
background-color: #d8dee9 !important; | |
background-image: none !important; | |
} | |
} |
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
// ==UserScript== | |
// @name disable bilibili background image | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description disable bilibili's background image | |
// @author Thallium54 | |
// @match https://*.bilibili.com/* | |
// @resource CSS main.css | |
// @icon https://www.google.com/s2/favicons?domain=bilibili.com | |
// @grant GM_addStyle | |
// @grant GM_getResourceText | |
// @run-at document-start | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
var style = GM_getResourceText("CSS"); | |
GM_addStyle(style); | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment