DingTalk Full Screen 钉钉网页版全屏

try to take over the world!

// ==UserScript==
// @name         DingTalk Full Screen 钉钉网页版全屏
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  try to take over the world!
// @author       阿轮, TalesYuan
// @match        https://im.dingtalk.com/*
// @grant        none
// ==/UserScript==


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


GM_addStyle(
`#layout-main {
width: 100%;
flex: 1;
}`
);
GM_addStyle(
    `#body {
height: 100%}`);

(function() {
    'use strict';
    // Your code here...
})();