增强哔哩哔哩的使用体验,优化笔记的使用
目前為
// ==UserScript==
// @name Bilibilii增强
// @namespace http://tampermonkey.net/
// @version 1.0.3
// @description 增强哔哩哔哩的使用体验,优化笔记的使用
// @author You
// @match *://www.bilibili.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=bilibili.com
// @grant GM_addStyle
// @license MIT
// ==/UserScript==
(function() {
'use strict';
GM_addStyle(`
.note-detail::-webkit-scrollbar {
width: 18px !important;
}
.note-detail::-webkit-scrollbar-thumb {
background: #d0cfcf !important;
}
.note-detail::-webkit-scrollbar-track {
background: #5e5b5b !important;
}
.note-editor .editor-innter.ql-container .ql-editor::-webkit-scrollbar {
width: 12px !important;
}
.resizable-component .ql-editor::-webkit-scrollbar-thumb {
border-radius: 5px;
background: #a9a9eb !important;
}
.note-list::-webkit-scrollbar {
width: 12px !important;
}
.note-list::-webkit-scrollbar-thumb {
background: #d8d0d0 !important;
}
.note-list::-webkit-scrollbar-track {
background: #3d3c3cf2 !important;
}
`)
window.addEventListener("load",function () {
const isOpenZiMu = document.querySelector(".bpx-player-subtitle-panel-major-group").childNodes.length > 0
if(!isOpenZiMu){
document.querySelector(".bpx-player-ctrl-btn.bpx-player-ctrl-subtitle .bpx-common-svg-icon").click()
}
})
})();