math-leave-data

汇总调休数据

  1. // ==UserScript==
  2. // @name math-leave-data
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.0.1
  5. // @license MIT
  6. // @description 汇总调休数据
  7. // @author hjl
  8. // @match https://pc.newland.com.cn/appPortal/kaoqin/home/myteamkq/my_tearm_card_detailList
  9. // @icon https://www.google.com/s2/favicons?sz=64&domain=newland.com.cn
  10. // @grant none
  11. // ==/UserScript==
  12.  
  13.  
  14. const xlsx ='https://xyfali.postar.cn/postar-st/web/xlsx.full.min.js'
  15.  
  16.  
  17. function createScript (url,onLoad){
  18. var script = document.createElement('script');
  19. script.src = url;
  20. if(onLoad){
  21. script.onload=onLoad
  22. }
  23. return script
  24. }
  25.  
  26.  
  27. document.body.appendChild(createScript(xlsx))
  28. window.onload = function () {
  29. document.body.appendChild(createScript(`https://xyfali.postar.cn/risk-message/leave-calculation.js?time=${new Date().getTime()}`))
  30. }
  31.