Bilibili 纯净播放页

原生 & 纯净

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

  1. // ==UserScript==
  2. // @name Bilibili Pure Player Page
  3. // @name:zh-CN Bilibili 纯净播放页
  4. // @description Native & Pure
  5. // @description:zh-CN 原生 & 纯净
  6. // @namespace https://greasyfork.org/users/197529
  7. // @version 0.3.4
  8. // @author kkocdko
  9. // @license Unlicense
  10. // @match *://*.bilibili.com/video/*
  11. // @run-at document-start
  12. // ==/UserScript==
  13. "use strict";
  14. document.lastChild.appendChild(document.createElement("style")).textContent = `
  15. .bili-mini-mask,
  16. [id$="Header"],
  17. #arc_toolbar_report,
  18. #v_desc ~ *,
  19. #v_desc > [report-id=abstract_spread],
  20. .right-container-inner > :first-child ~ :not(.base-video-sections-v1),
  21. .right-container ~ *,
  22. .up-info_right > .btn-panel,
  23. .bpx-player-video-area > :not(.bpx-player-video-perch),
  24. .bpx-player-sending-area {
  25. display: none;
  26. }
  27. html {overflow:hidden;}
  28. #bilibili-player,#playerWrap,.bpx-player-container,.desc-info,video{height:unset;outline:none;}
  29. .bpx-player-video-wrap{border:none;outline:none;}
  30. .left-container {min-height: 101vh;}
  31. `.replace(/;/g, "!important;");
  32. let once = () => {
  33. once = () => {};
  34. const el = document.querySelector("video");
  35. el.controls = true;
  36. el.onclick = (e) => e.preventDefault();
  37. };
  38. addEventListener("load", once);
  39. if (document.readyState === "complete") once();
  40.  
  41. // ==UserScript==
  42. // @name Bilibili Edgeless
  43. // @namespace Violentmonkey Scripts
  44. // @match *://*.bilibili.com/video/*
  45. // @version 1.0
  46. // @run-at document-start
  47. // ==/UserScript==
  48. // document.lastChild.appendChild(document.createElement("style")).textContent = `
  49. // #bilibili-player,#playerWrap,.bpx-player-container{height:unset;}
  50. // `.replace(/;/g, "!important;");