我正在尝试在Google chrome扩展程序中删除此侦听器以阻止URL,但我不知道如何!
chrome.webRequest.onBeforeRequest.addListener(
function(info) {
console.log("Chat intercepted: " + info.url);
return {cancel: true}; },
{urls: ["https://sampleUrl/*"]},
["blocking"]
);
Run Code Online (Sandbox Code Playgroud) javascript google-chrome event-handling google-chrome-extension