🏠 Home 

Greasy Fork is available in English.

直播间默认静音

默认静音

// ==UserScript==
// @name         直播间默认静音
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  默认静音
// @author       mscststs
// @match        *://live.bilibili.com/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=bilibili.com
// @license      ISC
// @run-at       document-head
// @grant        none
// ==/UserScript==
(function() {
'use strict';
let flag = true;
Object.keys(window.localStorage).filter(v=>v.startsWith("web-player-ui-config")).map(key=>{
const config = JSON.parse(window.localStorage[key]);
if(config.volume && !config.volume.disabled){
config.volume.disabled = true;
}
window.localStorage[key] = JSON.stringify(config);
});
})();