This file contains hidden or 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
window.hljs = { | |
/** @type {Promise<any>} */ | |
shiki: undefined, | |
configure() { | |
this.shiki = import('https://esm.sh/[email protected]') | |
}, | |
/** @param {HTMLElement} codeElement */ | |
async highlightBlock(codeElement) { | |
const lang = [...codeElement.classList.values()] | |
.map((name) => name.match(/^language-(.+)$/)?.[1]) |
This file contains hidden or 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 Bilibili Volume Control | |
// @version 2025-05-19 | |
// @description Smaller step for volume control on Bilibili video player. | |
// @author Pig Fang | |
// @match https://www.bilibili.com/video/* | |
// @match https://www.bilibili.com/list/watchlater* | |
// @match https://www.bilibili.com/bangumi/play/* | |
// @grant none | |
// ==/UserScript== |