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",