Bilibili Pure Player Page

Native & Pure

目前為 2022-11-22 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 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;");