0
我想加载并运行一个非常基本的扩展功能来阻止所有的URL,但没有任何反应。 manifest.json档案:chrome.webRequest事件不会被触发
{
"manifest_version": 2,
"name": "Dial2Action",
"description": "This is my description",
"version": "1.0",
"background": {"scripts":["background.js"]},
"permissions": [
"webRequest",
"webRequestBlocking",
"https://app.dial2web.com/"
]
}
和background.js文件:
chrome.webRequest.onBeforeRequest.addListener(
function(details) {
return {cancel: true}; },
{urls: ["<all_urls>"]},
["blocking"]);
我会很高兴得到一个暗示或者一个工作简单的重定向扩展的引用。
关于您最后的注意事项,请参阅http://stackoverflow.com/questions/12065029/chrome-redirect-extension/12070823#12070823 –