Greasy Fork is available in English.

直播间默认全屏

进入直播间后默认网页全屏

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         直播间默认全屏
// @namespace    mscststs
// @version      0.2
// @description  进入直播间后默认网页全屏
// @author       mscststs
// @include     /^https:\/\/live\.bilibili\.com\/(?:blanc\/)?\d/
// @icon         https://www.google.com/s2/favicons?domain=bilibili.com
// @require      https://greasyfork.org/scripts/38220-mscststs-tools/code/MSCSTSTS-TOOLS.js?version=1025381
// @grant        none
// ==/UserScript==

(async function() {
    'use strict';



    while( 1 ){
        await mscststs.sleep(300)
        if(window.livePlayer){
            init();
            return;
        }
    }



    async function init(){
        await mscststs.wait("video");
        let click = new Event("dblclick", {bubbles:true});
        document.querySelector("video").dispatchEvent(click)
    }
})();