diff --git a/manifest.json b/manifest.json index b1752b6..d3502f2 100644 --- a/manifest.json +++ b/manifest.json @@ -18,13 +18,13 @@ "content_scripts": [ { "matches": ["http://*/*", "https://*/*"], - "js": ["scripts/outside/watchman.js"] + "js": ["scripts/external/watchman.js"] } ], "web_accessible_resources": [ { "matches": ["http://*/*", "https://*/*"], - "resources": ["scripts/*.js", "gui/scripts/*.js", "gui/scripts/AI/*.js", "gui/scripts/outside/*.js", "gui/scripts/*.JS", "config/*.json"] + "resources": ["scripts/*.js", "gui/scripts/*.js", "gui/scripts/AI/*.js", "gui/scripts/external/*.js", "gui/scripts/*.JS", "config/*.json"] } ], diff --git a/scripts/outside/inject.js b/scripts/external/inject.js similarity index 100% rename from scripts/outside/inject.js rename to scripts/external/inject.js diff --git a/scripts/outside/processor.js b/scripts/external/processor.js similarity index 73% rename from scripts/outside/processor.js rename to scripts/external/processor.js index d63b278..4a6986c 100644 --- a/scripts/outside/processor.js +++ b/scripts/external/processor.js @@ -2,15 +2,14 @@ Process the information on the website and display it on screen. */ -// const inject = ((await import(chrome.runtime.getURL("scripts/outside/inject.js"))).default); -const scraper = (await import(chrome.runtime.getURL("scripts/outside/scraper.js"))).default; +// const inject = ((await import(chrome.runtime.getURL("scripts/external/inject.js"))).default); +const scraper = (await import(chrome.runtime.getURL("scripts/external/scraper.js"))).default; export default class processor { #filter; async scrape (fields) { this.data = new scraper ((fields) ? fields : this.targets); - console.log(this.data); } constructor (filter) { diff --git a/scripts/outside/scraper.js b/scripts/external/scraper.js similarity index 100% rename from scripts/outside/scraper.js rename to scripts/external/scraper.js diff --git a/scripts/outside/watchman.js b/scripts/external/watchman.js similarity index 97% rename from scripts/outside/watchman.js rename to scripts/external/watchman.js index 3a36af1..4cf94bb 100644 --- a/scripts/outside/watchman.js +++ b/scripts/external/watchman.js @@ -5,7 +5,7 @@ Be sensitive to changes and update the state. let main = (async () => { // Import modules. let filters = new ((await import(chrome.runtime.getURL("scripts/filters.js"))).default); - const processor = (await import(chrome.runtime.getURL("scripts/outside/processor.js"))).default; + const processor = (await import(chrome.runtime.getURL("scripts/external/processor.js"))).default; class watchman { /* Check the current URL.