Group options files in folder

master
magnolia1234 2021-03-27 08:30:39 +01:00
parent 6c664e2792
commit 7f1c3cf94a
17 changed files with 6 additions and 6 deletions

View File

@ -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]) {

View File

@ -4,7 +4,7 @@
},
"content_security_policy": "script-src 'self'; object-src 'self'",
"browser_action": {
"default_popup": "popup.html"
"default_popup": "options/popup.html"
},
"description": "Bypass Paywalls of news sites",
"homepage_url": "https://gitlab.com/magnolia1234/bypass-paywalls-chrome-clean/-/blob/master/README.md",
@ -19,7 +19,7 @@
"options_ui": {
"chrome_style": true,
"open_in_tab": true,
"page": "options.html"
"page": "options/options.html"
},
"incognito": "split",
"optional_permissions": [

View File

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

0
options.js → options/options.js Executable file → Normal file
View File

View File

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