Skip to content

Instantly share code, notes, and snippets.

@phtwo
phtwo / bilibili_extra_video_data.user.js
Last active October 10, 2023 17:40
user.js - 在b站播放页标题栏下面显示视频 av 号、bv 号及弹幕 cid
// ==UserScript==
// @name bilibili - display video av, bv number below the title bar
// @name:zh-CN b 站 - 显示视频 av 号、bv 号及弹幕 cid
// @namespace https://gist.github.com/phtwo
// @version 0.3.2
// @licence MIT. Copyright (c) phtwo.
// @description Display the video av, bv, cid number below the title bar of the bilibili play page, support copy short link
// @description:zh-CN 在 b 站播放页标题栏下面显示视频 av 号、bv 号及弹幕 cid,支持复制短链接
// @match *://www.bilibili.com/video/*
// @grant GM_addStyle
@phtwo
phtwo / bilibili_recommended_video_url_modifier.user.js
Last active May 21, 2020 18:11
user.js - 给 Bilibili 视频播放器结束播放后的推荐视频界面添加网址,以支持新标签页打开
! function(argument) {
var o = { a: 5, b: 6 };
var s = 'a: ${a}, a + b: ${a+b*2}';
console.log(compileTemplateLiterals(s, o));
// 编译模板字符串 模拟
function compileTemplateLiterals(string, object) {