move scripts for non-extension pages
This commit is contained in:
parent
4d20cdec8d
commit
9dfdb3f44b
5 changed files with 5 additions and 6 deletions
|
@ -18,13 +18,13 @@
|
||||||
"content_scripts": [
|
"content_scripts": [
|
||||||
{
|
{
|
||||||
"matches": ["http://*/*", "https://*/*"],
|
"matches": ["http://*/*", "https://*/*"],
|
||||||
"js": ["scripts/outside/watchman.js"]
|
"js": ["scripts/external/watchman.js"]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"web_accessible_resources": [
|
"web_accessible_resources": [
|
||||||
{
|
{
|
||||||
"matches": ["http://*/*", "https://*/*"],
|
"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"]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|
|
@ -2,15 +2,14 @@
|
||||||
Process the information on the website and display it on screen.
|
Process the information on the website and display it on screen.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// const inject = ((await import(chrome.runtime.getURL("scripts/outside/inject.js"))).default);
|
// const inject = ((await import(chrome.runtime.getURL("scripts/external/inject.js"))).default);
|
||||||
const scraper = (await import(chrome.runtime.getURL("scripts/outside/scraper.js"))).default;
|
const scraper = (await import(chrome.runtime.getURL("scripts/external/scraper.js"))).default;
|
||||||
|
|
||||||
export default class processor {
|
export default class processor {
|
||||||
#filter;
|
#filter;
|
||||||
|
|
||||||
async scrape (fields) {
|
async scrape (fields) {
|
||||||
this.data = new scraper ((fields) ? fields : this.targets);
|
this.data = new scraper ((fields) ? fields : this.targets);
|
||||||
console.log(this.data);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
constructor (filter) {
|
constructor (filter) {
|
|
@ -5,7 +5,7 @@ Be sensitive to changes and update the state.
|
||||||
let main = (async () => {
|
let main = (async () => {
|
||||||
// Import modules.
|
// Import modules.
|
||||||
let filters = new ((await import(chrome.runtime.getURL("scripts/filters.js"))).default);
|
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 {
|
class watchman {
|
||||||
/* Check the current URL.
|
/* Check the current URL.
|
Loading…
Add table
Add a link
Reference in a new issue