diff --git a/popup.html b/popup.html index 7b72f74..5bb89cb 100644 --- a/popup.html +++ b/popup.html @@ -5,41 +5,68 @@ -
Enable
-
Disable

- +
+
+
+
+ +
\ No newline at end of file diff --git a/popup.js b/popup.js new file mode 100644 index 0000000..e699a22 --- /dev/null +++ b/popup.js @@ -0,0 +1,30 @@ +var status = "on"; + var exception = "off"; + + function changeStatus(){ + var element = document.getElementById('status'); + var val = "Global Enable"; + if(status == "on"){ + val = " Global Disable"; + status = "off"; + element.className = "disable"; + }else{ + status = "on"; + element.className = "enable"; + } + element.innerHTML = val; + } + + function handleException(){ + var element = document.getElementById('exception'); + var val = "Enable on page"; + if(exception == "off"){ + val = "Disable on page"; + exception = "on"; + element.className = "disable"; + }else{ + exception = "off"; + element.className = "enable"; + } + element.innerHTML = val; + } \ No newline at end of file