Web DingTalk Helper

make web dingtalk fullscreen

目前為 2016-09-16 提交的版本,檢視 最新版本

// ==UserScript==
// @name         Web DingTalk Helper
// @namespace    http://creamidea.github.io/
// @version      0.0.1
// @license      MIT License (Expat)
// @description  make web dingtalk fullscreen
// @author       creamidea
// @email        [email protected]
// @match        https://im.dingtalk.com/*
// @grant        none
// ==/UserScript==

(function () {
    var timer

    function resize() {
        $('#layout-main').css({
            'position': 'static',
            'top': 0,
            'left': 0,
            'marginLeft': 0,
            'marginTop': 0,
            'width': '100%',
            'height': '100%'
        }).find('#body').css('height', $('#layout-main').height() - $('#layout-main #header').height() - 1)
    }

    $(window).on('resize', resize)

    resize()
    timer = setInterval(function () {
        if ( $('#layout-main').css('position') === 'absolute' ) {
            resize()
            clearInterval(timer)
        }
    }, 1000)

})()

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址