Skip to content

Instantly share code, notes, and snippets.

@thallium
Last active August 11, 2022 01:44
Show Gist options
  • Save thallium/bcd3634f8835527b2d11582337699cc3 to your computer and use it in GitHub Desktop.
Save thallium/bcd3634f8835527b2d11582337699cc3 to your computer and use it in GitHub Desktop.
disable bilibili background image
@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;
}
}
// ==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