From 6f755c4cf456be3671936bd195bf56cf02f3e75f Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Sun, 21 Dec 2014 16:07:29 +0000 Subject: Exclusion; move exclusion HTML to separate, shared page. --- pages/exclusions.html | 14 ++++++++++++++ pages/options.coffee | 13 ++++++++++--- pages/options.html | 17 +---------------- pages/popup.html | 18 +----------------- 4 files changed, 26 insertions(+), 36 deletions(-) create mode 100644 pages/exclusions.html diff --git a/pages/exclusions.html b/pages/exclusions.html new file mode 100644 index 00000000..0a9e715b --- /dev/null +++ b/pages/exclusions.html @@ -0,0 +1,14 @@ + + + + + +
PatternsKeys
+ diff --git a/pages/options.coffee b/pages/options.coffee index def67fd7..abbf52c6 100644 --- a/pages/options.coffee +++ b/pages/options.coffee @@ -294,7 +294,14 @@ initPopupPage = -> # # Initialization. document.addEventListener "DOMContentLoaded", -> - switch location.pathname - when "/pages/options.html" then initOptionsPage() - when "/pages/popup.html" then initPopupPage() + xhr = new XMLHttpRequest() + xhr.open 'GET', chrome.extension.getURL('pages/exclusions.html'), true + xhr.onreadystatechange = -> + if xhr.readyState == 4 + $("exclusionScrollBox").innerHTML = xhr.responseText + switch location.pathname + when "/pages/options.html" then initOptionsPage() + when "/pages/popup.html" then initPopupPage() + + xhr.send() diff --git a/pages/options.html b/pages/options.html index 9a0368a3..e54d1c2f 100644 --- a/pages/options.html +++ b/pages/options.html @@ -23,23 +23,8 @@
-
- - - - - -
PatternsKeys
- +
diff --git a/pages/popup.html b/pages/popup.html index b89e2f07..4f36cbfe 100644 --- a/pages/popup.html +++ b/pages/popup.html @@ -53,25 +53,9 @@
- -
- - - - - -
URL PatternsExcluded Keys
- +
-
-- cgit v1.2.3