Bilibili 纯净播放页

原生 & 纯净

当前为 2022-11-22 提交的版本,查看 最新版本

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name        Bilibili Pure Player Page
// @name:zh-CN  Bilibili 纯净播放页
// @description Native & Pure
// @description:zh-CN 原生 & 纯净
// @namespace   https://greasyfork.org/users/197529
// @version     0.3.2
// @author      kkocdko
// @license     Unlicense
// @match       *://*.bilibili.com/video/*
// @run-at      document-start
// ==/UserScript==
"use strict";
document.lastChild.appendChild(document.createElement("style")).textContent = `
.bili-mini-mask,
[id$="Header"],
#arc_toolbar_report,
#v_desc ~ *,
#v_desc > [report-id=abstract_spread],
.right-container-inner > :first-child ~ :not(.base-video-sections-v1),
.right-container ~ *,
.bpx-player-video-area > :not(.bpx-player-video-perch),
.bpx-player-sending-area {
  display: none;
}
html {overflow:hidden;}
#bilibili-player,#playerWrap,.bpx-player-container,.desc-info{height:unset;}
.bpx-player-video-wrap{border:none;outline:none;}
.left-container {min-height: 101vh;}
`.replace(/;/g, "!important;");
let once = () => {
  once = () => {};
  const el = document.querySelector("video");
  el.controls = true;
  el.onclick = (e) => e.preventDefault();
};
addEventListener("load", once);
if (document.readyState === "complete") once();

// ==UserScript==
// @name        Bilibili Edgeless
// @namespace   Violentmonkey Scripts
// @match       *://*.bilibili.com/video/*
// @version     1.0
// @run-at      document-start
// ==/UserScript==
// document.lastChild.appendChild(document.createElement("style")).textContent = `
// #bilibili-player,#playerWrap,.bpx-player-container{height:unset;}
// `.replace(/;/g, "!important;");