您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
公文代办自动提交
// ==UserScript== // @name 待办公文提交 // @namespace http://tampermonkey.net/ // @version 0.1 // @description 公文代办自动提交 // @author Lee-7723 // @match http://cmoait.hq.cmcc/flow-view-it/* // @icon http://172.21.166.47:18031/isearchOA/favicon.ico // @grant none // ==/UserScript== (function() { 'use strict'; let button = "#app > div > div > div.jdf-process-form-template-oa.jdf-process-template > div.process-btns > div > div > div:nth-child(3) > button" let a = "#app > div > div > div.jdf-process-form-template-oa.jdf-process-template > div.el-dialog__wrapper > div > div.el-dialog__body > div > div.onekey-list.jdf-card-table > div.jdf-onekey-table-scrollbar.el-scrollbar > div.el-scrollbar__wrap > div > div > div:nth-child(1) > div > div > div.jdf-card-table__cell.el-col.el-col-4 > div > a.el-tooltip.jdf-mr10.el-link.el-link--default" let first = setInterval(function(){ if(document.querySelector(button)){ document.querySelector(button).click() let second = setInterval(function(){ if(document.querySelector(a)){ document.querySelector(a).click() clearInterval(second) clearInterval(first) } }, 1000) } }, 1000) // Your code here... } )();