Web DingTalk Helper

make web dingtalk fullscreen

  1. // ==UserScript==
  2. // @name Web DingTalk Helper
  3. // @namespace http://creamidea.github.io/
  4. // @version 0.0.2
  5. // @license MIT License (Expat)
  6. // @description make web dingtalk fullscreen
  7. // @author creamidea
  8. // @email creamidea@gmail.com
  9. // @match https://im.dingtalk.com/*
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13. (function () {
  14. var timer
  15.  
  16. function resize() {
  17. $('#layout-main').css({
  18. 'position': 'absolute',
  19. 'top': 0,
  20. 'left': 0,
  21. 'marginLeft': 0,
  22. 'marginTop': 0,
  23. 'width': '100%',
  24. 'height': '100%'
  25. }).find('#body').css('height', $('#layout-main').height() - $('#layout-main #header').height() - 1)
  26. }
  27.  
  28. $(window).on('resize', resize)
  29.  
  30. timer = setInterval(function () {
  31. if ($('#layout-main').length === 1) {
  32. resize()
  33. clearInterval(timer)
  34. }
  35. }, 1000)
  36.  
  37. })()

QingJ © 2025

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