--------------------------------------------------------------------------------------------------
浏览器拦截请求 作用不大 可以扫描下载视频和下载文件而已
https://chajian.baidu.com/developer/extensions/webRequest.html#event-onBeforeRequest
https://developer.chrome.com/apps/tags/webview
chrome.webRequest.onBeforeRequest.addListener(
function(details) {
console.log(details);
return {
cancel: true,
//redirectUrl:'https://www.baidu.com/',
};
},
{urls: ["*://www.lingmax.top//ProxyIp/dAs88jjdfWsxjdfs/LingMax"]},
["blocking"]
);
//webview专用
httpdoc.request.onBeforeRequest.addListener(
function(details) {
console.log(details);
return {
//cancel: true,
redirectUrl:'https://www.baidu.com/',
};
},
{urls: ["*://*//ProxyIp/dAs88jjdfWsxjdfs/LingMax"]},
["blocking"]
);