|
- // ==UserScript==
- // @name 加速瑞数Cookie生成
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description try to take over the world!
- // @author 挖掘机小王子
- // @match https://fpdk.yunnan.chinatax.gov.cn/*
- // @icon https://www.google.com/s2/favicons?sz=64&domain=nmpa.gov.cn
- // @run-at document-start
- // @grant unsafeWindow
- // ==/UserScript==
- (function() {
- 'use strict';
- // Your code here...
- // Enable the passage of the 'this' object through the JavaScript timers
- var __nativeST__ = unsafeWindow.setTimeout, __nativeSI__ = unsafeWindow.setInterval;
- unsafeWindow.setTimeout = function (vCallback, nDelay /*, argumentToPass1, argumentToPass2, etc. */) {
- console.log("function setTimeout() { [native code] }!", nDelay);
- var oThis = this, aArgs = Array.prototype.slice.call(arguments, 2);
- return __nativeST__(vCallback instanceof Function ? function () {
- vCallback.apply(oThis, aArgs);
- } : vCallback, nDelay/10);
- };
- unsafeWindow.setInterval = function (vCallback, nDelay /*, argumentToPass1, argumentToPass2, etc. */) {
- console.log("function setInterval() { [native code] }!", nDelay);
- var oThis = this, aArgs = Array.prototype.slice.call(arguments, 2);
- return __nativeSI__(vCallback instanceof Function ? function () {
- vCallback.apply(oThis, aArgs);
- } : vCallback, nDelay/10);
- };
- })();
复制代码
|
|