From 276c08d355c780eaa64ce588c467fac7f4948676 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kevin=20R=C3=B6bert?= Date: Fri, 4 Aug 2017 15:43:03 +0200 Subject: [PATCH] Revert "It's so beautiful" This reverts commit 1495391c724afe4b4968d1b302a4996ae4a612e4. --- popup.html | 45 --------------------------------------------- popup.js | 46 ---------------------------------------------- 2 files changed, 91 deletions(-) delete mode 100644 popup.html delete mode 100644 popup.js diff --git a/popup.html b/popup.html deleted file mode 100644 index cbda210..0000000 --- a/popup.html +++ /dev/null @@ -1,45 +0,0 @@ - - - - ClearURLs Add-on - - - - -
Enable
-
Disable

- - - \ No newline at end of file diff --git a/popup.js b/popup.js deleted file mode 100644 index 928f106..0000000 --- a/popup.js +++ /dev/null @@ -1,46 +0,0 @@ -chrome.management.onEnabled.addListener(function(e){ - var disableButton = document.getElementById("disable"); - var enableButton = document.getElementById("enable"); - chrome.browserAction.setIcon ({path: "icon_19.png"}); - enableButton.style.display = "none"; - disableButton.style.display = "block"; -}); -chrome.management.onDisabled.addListener(function(e){ - var disableButton = document.getElementById("disable"); - var enableButton = document.getElementById("enable"); - chrome.browserAction.setIcon ({path: "icon_19g.png"}); - disableButton.style.display = "none"; - enableButton.style.display = "block"; -}) - -function toggle() { - var disableButton = document.getElementById("disable"); - var enableButton = document.getElementById("enable"); - disableButton.addEventListener("click", disable, false); - enableButton.addEventListener("click", enable, false); - var id = "gmcgchmkljbejmhenadknkdjgjlcinld" - chrome.management.get(id, function(ex) { - if(ex.enabled) - { - chrome.browserAction.setIcon ({path: "icon_19.png"}); - enableButton.style.display = "none"; - disableButton.style.display = "block"; - } - if(!ex.enabled) - { - chrome.browserAction.setIcon ({path: "icon_19g.png"}); - disableButton.style.display = "none"; - enableButton.style.display = "block"; - } - }); -} - -function enable() { - chrome.management.setEnabled("gmcgchmkljbejmhenadknkdjgjlcinld", true); - window.close(); -} -function disable() { - chrome.management.setEnabled("gmcgchmkljbejmhenadknkdjgjlcinld", false); - window.close(); -} -document.addEventListener("DOMContentLoaded", toggle, false); \ No newline at end of file