51
rated 0 times
[
55]
[
4]
/ answers: 1 / hits: 26605
/ 9 Years ago, tue, march 17, 2015, 12:00:00
I am trying to create an extension to analyse requests made on the chrome browser but I can't put it work. The alert never fires.
manifest.json
{
name: Test,
description: Test,
version: 1.0,
manifest_version: 2,
permissions: [background, tabs, webRequest, webRequestBlocking, *://*/*],
background: {
scripts: [background.js],
persistent: true
}
}
background.js
var callback = function(details) {
alert(hello);
};
var filter = { *://*/* };
var opt_extraInfoSpec = [];
chrome.webRequest.onBeforeRequest.addListener(
callback, filter, opt_extraInfoSpec);
Why is it my alert not firing?
More From » google-chrome