您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
在 bilibili 番剧播放页集数选择下面显示封面,并添加全屏与弹幕开关快捷键
// ==UserScript== // @name B 站番剧播放页面显示封面 // @version 0.1.0 // @description 在 bilibili 番剧播放页集数选择下面显示封面,并添加全屏与弹幕开关快捷键 // @author asadahimeka // @namespace https://www.nanoka.top // @license MIT // @match https://www.bilibili.com/bangumi/play/* // @require https://lib.baomitu.com/arrive/2.4.1/arrive.min.js // @source https://github.com/asadahimeka/userscripts // @supportURL https://github.com/asadahimeka/userscripts/issues // @run-at document-end // ==/UserScript== (function() { "use strict"; ; function waitArrive(sel, cb) { document.arrive(sel, { existing: true }, (element) => { cb(element); }); } function onKeypress(ev) { ev.code == "Digit1" && $(".bui-switch-input").trigger("click"); ev.code == "Backquote" && $(".squirtle-video-fullscreen").trigger("click"); } function run() { addEventListener("keypress", onKeypress); waitArrive("#eplist_module", () => { $("#eplist_module").after(`<img id="_ep_info_cover_" src="${__INITIAL_STATE__.epInfo.cover}" style="width:320px;margin-bottom:20px">`); $("#eplist_module ul").on("click", "li", function() { $("#_ep_info_cover_").attr("src", this.__vue__.epInfo.cover); }); }); } addEventListener("load", run); })();