Jitsi always show toolbox

Prevent the Jitsi toolbox from sliding away

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Jitsi always show toolbox
// @namespace    http://artificialworlds.net
// @version      0.2
// @description  Prevent the Jitsi toolbox from sliding away
// @author       Andy Balaam
// @include      https://meet.*.space/*
// @match        https://meet.jit.si/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    function addStyle(css) {
        const style = document.getElementById("GM_addStyleContainer") || (function() {
            const style = document.createElement('style');
            style.type = 'text/css';
            style.id = "GM_addStyleContainer";
            document.head.appendChild(style);
            return style;
        })();
        const sheet = style.sheet;
        sheet.insertRule(css, (sheet.rules || sheet.cssRules || []).length);
    }

    // AndyB: Make toolbox always visible
    addStyle(`
        .new-toolbox {
            bottom: 0;
            height: 42px;
        }
    `);
    addStyle(`
        .toolbox-content-items {
            padding: 0px;
        }
    `);
    addStyle(`
        .toolbox-content {
            margin-bottom: 0px;
        }
    `);
    addStyle(`
        .tile-view {
            align-content: start;
        }
    `);
    addStyle(`
        #videospace {
            height: calc(100% - 24px);
            max-height: calc(100% - 24px);
        }
    `);
    addStyle(`
        .tile-view #filmstripRemoteVideos {
            height: calc(100% - 24px);
        }
    `);
    addStyle(`
        .vertical-filmstrip .filmstrip.reduce-height {
            height: 100%;
        }
    `);
})();