Greasy Fork镜像 支持简体中文。

bilibili直播默认原画画质

由于主流Chromium内核浏览器不支持硬解hevc,哔哩哔哩播放hevc时可能使用cpu软件导致卡顿,特修改为原画画质,此脚本原版为bilibili直播默认最高画质,感谢原作者:https://gf.qytechs.cn/zh-CN/scripts/441090-bilibili%E7%9B%B4%E6%92%AD%E9%BB%98%E8%AE%A4%E6%9C%80%E9%AB%98%E7%94%BB%E8%B4%A8

  1. // ==UserScript==
  2. // @name bilibili直播默认原画画质
  3. // @namespace mscststs
  4. // @version 0.4
  5. // @description 由于主流Chromium内核浏览器不支持硬解hevc,哔哩哔哩播放hevc时可能使用cpu软件导致卡顿,特修改为原画画质,此脚本原版为bilibili直播默认最高画质,感谢原作者:https://gf.qytechs.cn/zh-CN/scripts/441090-bilibili%E7%9B%B4%E6%92%AD%E9%BB%98%E8%AE%A4%E6%9C%80%E9%AB%98%E7%94%BB%E8%B4%A8
  6. // @author mscststs
  7. // @include /^https:\/\/live\.bilibili\.com\/(?:blanc\/)?\d/
  8. // @icon https://www.google.com/s2/favicons?domain=bilibili.com
  9. // @require https://gf.qytechs.cn/scripts/38220-mscststs-tools/code/MSCSTSTS-TOOLS.js?version=1026406
  10. // @run-at document-start
  11. // @license GNU GPLv3
  12. // @grant none
  13. // ==/UserScript==
  14.  
  15. (async function() {
  16. 'use strict';
  17. let video = await mscststs.wait("#live-player > video");
  18. if(video.paused){
  19. video.addEventListener("playing",changeQuelity);
  20. }else{
  21. changeQuelity();
  22. }
  23.  
  24.  
  25. function changeQuelity(){
  26. let livePlayer = window.livePlayer;
  27. if(!livePlayer){
  28. livePlayer = window.top.livePlayer;
  29. }
  30. let info = livePlayer.getPlayerInfo()
  31. if(info.qualityCandidates.length > 1){
  32. console.log(info.qualityCandidates);
  33. for (let index = 0; index < info.qualityCandidates.length; index++) {
  34. // 想要默认其他画质,请修改"原画"为"原画PRO"诸如此类
  35. if (info.qualityCandidates[index].desc=="原画") {
  36. livePlayer.switchQuality(info.qualityCandidates[index].qn)
  37. }
  38. //else{
  39. // livePlayer.switchQuality(info.qualityCandidates[0].qn)
  40. //}
  41. }
  42. }
  43. }
  44.  
  45.  
  46.  
  47. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址