chrome.extension
chrome.extension copied to clipboard
webRequest seems need more arguments
I'm not sure, but according to google's docs: https://developer.chrome.com/extensions/webRequest#subscription
In addition to specifying a callback function, you have to specify a filter argument and you may specify an optional extra info argument.
So I think some methods should be:
chrome.webRequest.onBeforeRequest.addListener(
callback, filter, opt_extraInfoSpec);