From 26ebcfb781706b3f89b54347a1bd13854a943f6a Mon Sep 17 00:00:00 2001 From: Paul Tu Date: Fri, 1 May 2015 02:10:30 +0800 Subject: [PATCH] Permission modified manifest.json "permissions", "http://*/" added. --- content.js | 2 ++ manifest.json | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/content.js b/content.js index c1c523d..91f61cb 100755 --- a/content.js +++ b/content.js @@ -2,6 +2,8 @@ chrome.extension.onMessage.addListener(function(message, sender, sendResponse) { switch(message.type) { case "colors-div": var divs = document.querySelectorAll("div"); + + console.log(divs); if(divs.length === 0) { alert("There are no any divs in the page."); } else { diff --git a/manifest.json b/manifest.json index 4474be1..1263783 100755 --- a/manifest.json +++ b/manifest.json @@ -7,6 +7,10 @@ "omnibox": { "keyword" : "yeah" }, + "permissions": [ + "http://*/" + ], + "browser_action": { "default_icon": { "19": "icons/19x19.png",