Greasy Fork

Greasy Fork is available in English.

抖音直播后台依旧加载弹幕-摸鱼奎恩

让直播间页面在后台时依旧加载弹幕

当前为 2025-05-07 提交的版本,查看 最新版本

// ==UserScript==
// @name         抖音直播后台依旧加载弹幕-摸鱼奎恩
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  让直播间页面在后台时依旧加载弹幕
// @author       xero127
// @match        *://live.douyin.com/*
// @icon         https://p-pc-weboff.byteimg.com/tos-cn-i-9r5gewecjs/favicon.png
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict'; //严格模式
    Object.defineProperty(document, 'hidden', {
        value: false,
        writable: false, // 阻止页面修改
        configurable: false // 不可配置
    });
    Object.defineProperty(document, 'visibilityState', {
        value: 'visible',
        writable: false, // 阻止页面修改
        configurable: false // 不可配置
    });
    window.requestAnimationFrame = (callback) => setTimeout(() => callback(performance.now()), 16); // 1000/16≈60fps
})();