您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
进入直播间后默认网页全屏
// ==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 // @license GNU GPLv3 // @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); let re = await mscststs.wait("#aside-area-toggle-btn"); re.dispatchEvent(new Event("click")) //re.className = re.className.replace(" hide-aside-area", ""); } })();