您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
新建文件处理单提交后,依旧保持在收文登记
当前为
// ==UserScript== // @name 收文登记禁止转跳 // @namespace http://tampermonkey.net/ // @version 0.21 // @description 新建文件处理单提交后,依旧保持在收文登记 // @author skipto // @match http://www.ctnma.cn/ioop-bcs-web/main.do // @icon https://www.google.com/s2/favicons?domain=ctnma.cn // @grant none // @license Mozilla // ==/UserScript== // 测试的时候使用敏感词,这样避免有短信提醒。 // https://stackoverflow.com/questions/5202296/add-a-hook-to-all-ajax-requests-on-a-page ((() => { const origOpen = XMLHttpRequest.prototype.open; XMLHttpRequest.prototype.open = function() { //console.log('arguments:',arguments); if ( arguments[1].includes("doc/doc-in.do?searchKey=") ) { console.log('find!!!',arguments); arguments[1] = 'doc/doc-in!guide.do?randID=0.2538253825382538'; } this.addEventListener('load', function() { //console.log(this.readyState); //will always be 4 (ajax is completed successfully) //console.log(this.responseText); //whatever the response was }); origOpen.apply(this, arguments); }; }))();