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 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 |
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 Add URL to the recommend interface when Bilibili video player finishes playing | |
// @name:zh-CN 给 Bilibili 视频播放器结束播放后的推荐视频界面添加网址 | |
// @namespace https://gist.github.com/phtwo | |
// @version 0.2.1 | |
// @description Modify the recommended video URL of the Bilibili video player to support the middle mouse button clicks | |
// @description:zh-CN 给 Bilibili 视频播放器结束播放后的推荐视频界面添加网址,以支持新标签页打开 | |
// @match *://www.bilibili.com/video/* | |
// @grant none | |
// |
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
! 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) { |