diff --git a/background.js b/background.js index 2bc7237..93d8e66 100644 --- a/background.js +++ b/background.js @@ -8,7 +8,7 @@ blockService.set(DefaultList); blockList = blockService.get(); blockChecker = new BlockCheck(DefaultList); -var currTabs = []; //TODO bugfix +var currTabs = []; //TODO add additional information to these objects, e.g. time var prevSite = ""; chrome.webRequest.onBeforeRequest.addListener( diff --git a/js/popup.js b/js/popup.js new file mode 100644 index 0000000..664bdcf --- /dev/null +++ b/js/popup.js @@ -0,0 +1,7 @@ +//Listener for Disable + +$(function(){ + $("#enable_button").click(function(){ + console.log("button is pressed"); + }); +}); diff --git a/js/verify.js b/js/verify.js index 46cfbe8..af51807 100644 --- a/js/verify.js +++ b/js/verify.js @@ -29,11 +29,9 @@ window.onload = function setupUpdater(){ var newText=input.value; var score = a.get(newText)[0][0]; if (score>0.88) { - //debug set(count, "You are " + score*100 + "% accurate (need >91)"); passed = true; return; } else if (score> 0.1){ - //debug set(count, "You are " + score*100 + "% accurate (need >91)"); } } @@ -50,17 +48,9 @@ var activate = function(){ active: true, windowId: window.id }, function (tabs, req){ - /* console.log("GPS CWGC tabs"); - console.log(tabs); - console.log("GPS CWGC tabs[0]"); - console.log(tabs[0]); - console.log("GPS CWGC currTabs"); - console.log(currTabs);*/ result = $.grep(currTabs, function(e){ return e.tabId == tabs[0].id; }); -/* console.log("result"); - console.log(result);*/ req = result; if (req.length==0){ return ""; diff --git a/manifest.json b/manifest.json index 756973f..1427e7b 100644 --- a/manifest.json +++ b/manifest.json @@ -10,7 +10,8 @@ "browser_action": { "default_icon": "img/128.png", - "default_title": "MAD" + "default_title": "MAD", + "default_popup": "popup.html" }, "web_accessible_resources":[ diff --git a/popup.html b/popup.html new file mode 100644 index 0000000..2d2332a --- /dev/null +++ b/popup.html @@ -0,0 +1,21 @@ + + + + + + + + + + + + +
Yo Swag Son:
+
+
+
+
+
+
+ +