Bilibili 解鎖杜比全景聲 & 8K & 開啟 HDR & 直播畫質PRO

為 B站 Windows 平台 解鎖杜比全景聲 & 8K &開啟 HDR &直播畫質PRO

< Feedback on Bilibili 解鎖杜比全景聲 & 8K & 開啟 HDR & 直播畫質PRO

سوئال / ئىنكاس

§
يوللانغان ۋاقتى: 2024-08-11
تەھرىرلەنگەن ۋاقتى: 2024-08-11

个人修改版本,增强稳定性

(function() {
    window.localStorage['bilibili_player_force_DolbyAtmos&8K&HDR'] = 1;
    // B站内置强制开关
    window.localStorage.bilibili_player_force_hdr = 1;
    'use strict'
    const originalSetItem = sessionStorage.getItem;
    sessionStorage.getItem = function(key) {
        // 部分视频解码错误后会强制全局回退,禁用所有HEVC内容
        // 此hook禁用对应逻辑
        if (key === 'enableHEVCError') {
            return undefined;
        }
        return originalSetItem.apply(this,arguments);
    };
    Object.defineProperty(navigator, 'userAgent', {
        value: "Mozilla/5.0 (Macintosh; Intel Mac OS X 14_6_1) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.5 Safari/605.1.15"
    });
})();
tkp206093ئاپتور
§
يوللانغان ۋاقتى: 2024-08-11

很好 感謝修改

§
يوللانغان ۋاقتى: 2024-08-16
تەھرىرلەنگەن ۋاقتى: 2024-08-16

用了反而连视频都放不了了,确定是这部分的问题:

    const originalSetItem = sessionStorage.getItem;
    sessionStorage.getItem = function(key) {
        // 部分视频解码错误后会强制全局回退,禁用所有HEVC内容
        // 此hook禁用对应逻辑
        if (key === 'enableHEVCError') {
            return undefined;
        }
        return originalSetItem.apply(this,arguments);
    };
§
يوللانغان ۋاقتى: 2024-08-20

用了反而连视频都放不了了,确定是这部分的问题:

    const originalSetItem = sessionStorage.getItem;
    sessionStorage.getItem = function(key) {
        // 部分视频解码错误后会强制全局回退,禁用所有HEVC内容
        // 此hook禁用对应逻辑
        if (key === 'enableHEVCError') {
            return undefined;
        }
        return originalSetItem.apply(this,arguments);
    };

Edge不知道什么毛病解不了HEVC了,Chromium又解不了AV1,两边都放不了HDR了(摆烂)

جاۋاب قايتۇرۇش

جاۋاب قايتۇرۇش ئۈچۈن كىرىش.