This is my manifest.json
{
"manifest_version": 2,
"name": "MyExt",
"version": "1.0",
"permissions": ["http://*/*", "https://*/*", "webRequest", "webRequestBlocking"],
"background": [
{
"scripts": [
"js/background.js"
],
"persistent": true
}
],
"content_scripts": [
{
"matches": [
"<all_urls>"
],
"js": ["js/content.js"]
}
]
}
background.js:
chrome.webRequest.onBeforeRequest.addListener(
function(details){
console.log('test');
return {cancel: false};
},
{urls: [ "http://*/*", "https://*/*" ]},
["blocking"]
);
I assume, this should log in the console every request Chrome is making. But I never see any 'test' in my console... It drives me really crazy...