From ea715bf9f8b609d8e9b756d94aacb3119bd65e82 Mon Sep 17 00:00:00 2001 From: magnolia1234 <7676006-magnolia1234@users.noreply.gitlab.com> Date: Sat, 27 Mar 2021 08:31:03 +0100 Subject: [PATCH] Group options files in folder --- background.js | 4 ++-- manifest.json | 4 ++-- clearCookies.js => options/clearCookies.js | 0 {optin => options/optin}/opt-in.css | 0 {optin => options/optin}/opt-in.html | 0 {optin => options/optin}/opt-in.js | 0 options.html => options/options.html | 2 +- options.js => options/options.js | 0 options_custom.html => options/options_custom.html | 2 +- options_custom.js => options/options_custom.js | 0 options_excluded.html => options/options_excluded.html | 0 options_excluded.js => options/options_excluded.js | 0 popup.html => options/popup.html | 0 popup.js => options/popup.js | 0 popup_switch.css => options/popup_switch.css | 0 version.js => options/version.js | 0 16 files changed, 6 insertions(+), 6 deletions(-) rename clearCookies.js => options/clearCookies.js (100%) rename {optin => options/optin}/opt-in.css (100%) rename {optin => options/optin}/opt-in.html (100%) rename {optin => options/optin}/opt-in.js (100%) rename options.html => options/options.html (98%) rename options.js => options/options.js (100%) rename options_custom.html => options/options_custom.html (98%) rename options_custom.js => options/options_custom.js (100%) rename options_excluded.html => options/options_excluded.html (100%) rename options_excluded.js => options/options_excluded.js (100%) rename popup.html => options/popup.html (100%) rename popup.js => options/popup.js (100%) rename popup_switch.css => options/popup_switch.css (100%) rename version.js => options/version.js (100%) diff --git a/background.js b/background.js index 77b65ed..7886715 100644 --- a/background.js +++ b/background.js @@ -898,7 +898,7 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) { }, function (tabs) { if (tabs.length > 0 && tabs[0].url && tabs[0].url.indexOf("http") !== -1) { ext_api.tabs.executeScript({ - file: 'toggleIcon.js', + file: 'options/toggleIcon.js', runAt: 'document_start' }, function (res) { if (ext_api.runtime.lastError || res[0]) { @@ -1227,7 +1227,7 @@ function clear_cookies() { }, function (tabs) { if (tabs.length > 0 && tabs[0].url && tabs[0].url.indexOf("http") !== -1) { ext_api.tabs.executeScript({ - file: 'clearCookies.js', + file: 'options/clearCookies.js', runAt: 'document_start' }, function (res) { if (ext_api.runtime.lastError || res[0]) { diff --git a/manifest.json b/manifest.json index d048d31..b952f13 100644 --- a/manifest.json +++ b/manifest.json @@ -10,7 +10,7 @@ } }, "browser_action": { - "default_popup": "popup.html", + "default_popup": "options/popup.html", "default_icon": { "128": "bypass.png" }, @@ -32,7 +32,7 @@ "options_ui": { "browser_style": true, "open_in_tab": true, - "page": "options.html" + "page": "options/options.html" }, "optional_permissions": [ "" diff --git a/clearCookies.js b/options/clearCookies.js similarity index 100% rename from clearCookies.js rename to options/clearCookies.js diff --git a/optin/opt-in.css b/options/optin/opt-in.css similarity index 100% rename from optin/opt-in.css rename to options/optin/opt-in.css diff --git a/optin/opt-in.html b/options/optin/opt-in.html similarity index 100% rename from optin/opt-in.html rename to options/optin/opt-in.html diff --git a/optin/opt-in.js b/options/optin/opt-in.js similarity index 100% rename from optin/opt-in.js rename to options/optin/opt-in.js diff --git a/options.html b/options/options.html similarity index 98% rename from options.html rename to options/options.html index 103bbbb..891aec1 100644 --- a/options.html +++ b/options/options.html @@ -46,7 +46,7 @@ - + diff --git a/options.js b/options/options.js similarity index 100% rename from options.js rename to options/options.js diff --git a/options_custom.html b/options/options_custom.html similarity index 98% rename from options_custom.html rename to options/options_custom.html index bebf85a..65181e5 100644 --- a/options_custom.html +++ b/options/options_custom.html @@ -65,7 +65,7 @@ + - diff --git a/options_custom.js b/options/options_custom.js similarity index 100% rename from options_custom.js rename to options/options_custom.js diff --git a/options_excluded.html b/options/options_excluded.html similarity index 100% rename from options_excluded.html rename to options/options_excluded.html diff --git a/options_excluded.js b/options/options_excluded.js similarity index 100% rename from options_excluded.js rename to options/options_excluded.js diff --git a/popup.html b/options/popup.html similarity index 100% rename from popup.html rename to options/popup.html diff --git a/popup.js b/options/popup.js similarity index 100% rename from popup.js rename to options/popup.js diff --git a/popup_switch.css b/options/popup_switch.css similarity index 100% rename from popup_switch.css rename to options/popup_switch.css diff --git a/version.js b/options/version.js similarity index 100% rename from version.js rename to options/version.js