瑞数后缀Hook脚本

通过重写XMLHttpRequest的open方法来拦截加密前的明文URL,可以通过脚本查看接口的查询参数

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         瑞数后缀Hook脚本
// @namespace    PyHaoCoder
// @version      1.0
// @description  通过重写XMLHttpRequest的open方法来拦截加密前的明文URL,可以通过脚本查看接口的查询参数
// @author       PyHaoCoder
// @icon         https://www.riversecurity.com/images/blueIcon2.png
// @match        https://*/*
// @license      Proprietary
// @copyright    2025, PyHaoCoder (All Rights Reserved)
// ==/UserScript==

(function() {
  const originalOpen = XMLHttpRequest.prototype.open;

  // 重写 open 方法
  XMLHttpRequest.prototype.open = function(method, url) {
    console.log(`拦截到明文请求: ${method} ${url}`);
    originalOpen.apply(this, arguments);
  };

})();