Web DingTalk Helper

make web dingtalk fullscreen

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

You will need to install an extension such as Tampermonkey to install this script.

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name         Web DingTalk Helper
// @namespace    http://creamidea.github.io/
// @version      0.0.2
// @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': 'absolute',
      '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)

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

})()