Greasy Fork is available in English.

Bilibili - 在未登录的情况下自动并无限试用最高画质

在未登录的情况下自动并无限试用最高画质 | V1.4 新增对播放列表页面的支持

< Feedback on Bilibili - 在未登录的情况下自动并无限试用最高画质

Review: Good - script works

§
Posted: 24.06.2024.

感谢大佬。最近网络不太好,免登录时如果卡了1080总是会自动切换到低清晰度,登录时却不会,请问能否增加一个锁定最高画质的功能?加载慢一点也能等

DD1969Author
§
Posted: 28.06.2024.

你新建一个脚本,复制下面的代码进去,保存,看看有没有效果:

// ==UserScript==
// @name         Bilibili - Extend XHR Timeout
// @namespace    https://bilibili.com/
// @version      0.1
// @description  Extend timeout of XMLHttpRequest
// @license      GPL-3.0
// @author       DD1969
// @match        https://www.bilibili.com/video/*
// @icon         https://www.bilibili.com/favicon.ico
// @grant        none
// ==/UserScript==

(async function() {
  'use strict';

  // no need to continue this script if user already logged in
  if (document.cookie.includes('DedeUserID')) return;

  Object.defineProperty(XMLHttpRequest.prototype, 'timeout', {
    get: () => 0,
    set: () => {}
  });

})();
§
Posted: 30.06.2024.

感谢回复。试了下还是不行,卡住之后会自动调到低清晰度……
另外请问有办法增加缓存时长吗?现在b站好像最多提前缓存1分钟的样子

Post reply

Sign in to post a reply.