您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Print content-type 'application/vnd.apple.mpegurl'
当前为
// ==UserScript== // @name Print requests with content-type 'application/vnd.apple.mpegurl' // @namespace http://your-domain-here/ // @version 9 // @description Print content-type 'application/vnd.apple.mpegurl' // @match http://*/* // @match https://*/* // @grant GM_xmlhttpRequest // @license MIT // ==/UserScript== (function() { 'use strict'; window.onload = function() { const originalXhrOpen = XMLHttpRequest.prototype.open; XMLHttpRequest.prototype.open = function(method, url) { // 检查 url 是否是 B 网站的地址 console.log('拦截到 B 网站的请求', url); // 调用原始的 XMLHttpRequest.prototype.open 方法 return originalXhrOpen.apply(this, arguments); }; const originalFetch = window.fetch; window.fetch = function(url) { // 检查 url 是否是 B 网站的地址 // 在这里编写你的拦截代码 console.log('拦截到 B 网站的请求', url); // 调用原始的 window.fetch 方法 return originalFetch.apply(this, arguments); }; }; })();