Group options files in folder

This commit is contained in:
magnolia1234 2021-03-27 08:31:03 +01:00
parent c8cd9dc2ca
commit ea715bf9f8
16 changed files with 6 additions and 6 deletions

View file

@ -898,7 +898,7 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) {
}, function (tabs) { }, function (tabs) {
if (tabs.length > 0 && tabs[0].url && tabs[0].url.indexOf("http") !== -1) { if (tabs.length > 0 && tabs[0].url && tabs[0].url.indexOf("http") !== -1) {
ext_api.tabs.executeScript({ ext_api.tabs.executeScript({
file: 'toggleIcon.js', file: 'options/toggleIcon.js',
runAt: 'document_start' runAt: 'document_start'
}, function (res) { }, function (res) {
if (ext_api.runtime.lastError || res[0]) { if (ext_api.runtime.lastError || res[0]) {
@ -1227,7 +1227,7 @@ function clear_cookies() {
}, function (tabs) { }, function (tabs) {
if (tabs.length > 0 && tabs[0].url && tabs[0].url.indexOf("http") !== -1) { if (tabs.length > 0 && tabs[0].url && tabs[0].url.indexOf("http") !== -1) {
ext_api.tabs.executeScript({ ext_api.tabs.executeScript({
file: 'clearCookies.js', file: 'options/clearCookies.js',
runAt: 'document_start' runAt: 'document_start'
}, function (res) { }, function (res) {
if (ext_api.runtime.lastError || res[0]) { if (ext_api.runtime.lastError || res[0]) {

View file

@ -10,7 +10,7 @@
} }
}, },
"browser_action": { "browser_action": {
"default_popup": "popup.html", "default_popup": "options/popup.html",
"default_icon": { "default_icon": {
"128": "bypass.png" "128": "bypass.png"
}, },
@ -32,7 +32,7 @@
"options_ui": { "options_ui": {
"browser_style": true, "browser_style": true,
"open_in_tab": true, "open_in_tab": true,
"page": "options.html" "page": "options/options.html"
}, },
"optional_permissions": [ "optional_permissions": [
"<all_urls>" "<all_urls>"

View file

@ -46,7 +46,7 @@
<button><a href="options_excluded.html" style="text-decoration:none;color:inherit">Excluded sites</a></button> <button><a href="options_excluded.html" style="text-decoration:none;color:inherit">Excluded sites</a></button>
<button id="button-close">Close</button> <button id="button-close">Close</button>
</span> </span>
<script src="sites.js"></script> <script src="../sites.js"></script>
<script src="options.js"></script> <script src="options.js"></script>
<script src="version.js"></script> <script src="version.js"></script>
</body> </body>

View file

@ -65,7 +65,7 @@
<button><a href="options.html" style="text-decoration:none;color:inherit">Options</a></button> <button><a href="options.html" style="text-decoration:none;color:inherit">Options</a></button>
</span> </span>
<script src="../sites.js"></script>
<script src="options_custom.js"></script> <script src="options_custom.js"></script>
<script src="sites.js"></script>
</body> </body>
</html> </html>