Spaces:
Running
Running
chrome.runtime.onInstalled.addListener(() => { | |
chrome.storage.sync.set({ blockedSites: [] }); | |
}); | |
chrome.webRequest.onBeforeRequest.addListener( | |
(details) => { | |
return { cancel: true }; | |
}, | |
{ urls: ["*://*.example.com/*"], types: ["script"] }, | |
["blocking"] | |
); | |