您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
必须与广告屏蔽规则配套使用
当前为
// ==UserScript== // @name Bilibili Pure Player Page // @name:zh-CN Bilibili 纯净播放页 // @description MUST be used with AD rules // @description:zh-CN 必须与广告屏蔽规则配套使用 // @namespace http://greasyfork.icu/users/197529 // @version 0.1.0 // @author kkocdko // @license Unlicense // @match *://*.bilibili.com/* // ==/UserScript== "use strict"; if (v_tag.offsetHeight !== 0) { alert("[Bilibili Pure Player Page] user script MUST be used with AD rules!"); throw 1; } document.lastChild.appendChild(document.createElement("style")).textContent = ` #bilibili-player { height: auto; } .bilibili-player-video { margin: 0; } `.replace(/;/g, "!important;"); let last; const once = () => { const el = document.querySelector("video"); if (!el || last === el) return; last = el; el.addEventListener("click", () => el.click()); el.controls = true; }; const container = document.querySelector("#bilibili-player"); const options = { childList: true, subtree: true }; new MutationObserver(once).observe(container, options); once();