auto-updated syntax formatting
This commit is contained in:
parent
481ef03576
commit
5b06c3f967
1 changed files with 62 additions and 59 deletions
|
@ -4,7 +4,10 @@ Be sensitive to changes and update the state.
|
|||
|
||||
(async () => {
|
||||
// Import modules.
|
||||
let secretariat = await import(chrome.runtime.getURL("scripts/secretariat.js"));
|
||||
let secretariat = await import(
|
||||
chrome.runtime.getURL("scripts/secretariat.js")
|
||||
);
|
||||
let filters = await import(chrome.runtime.getURL("scripts/filters.js"));
|
||||
let reader = await import(chrome.runtime.getURL("scripts/reader.js"));
|
||||
|
||||
class watchman {
|
||||
|
@ -14,16 +17,15 @@ Be sensitive to changes and update the state.
|
|||
@return {dictionary} the filter to follow
|
||||
*/
|
||||
static observe(URL = window.location.href) {
|
||||
|
||||
// Create the variable to determine the corresponding key.
|
||||
let activity = false;
|
||||
let filters = secretariat.specifics(`filters`, URL);
|
||||
// let filters = secretariat.specifics(`filters`, URL);
|
||||
|
||||
// Check if the filters exist.
|
||||
activity = (filters);
|
||||
activity = filters;
|
||||
|
||||
return (activity);
|
||||
};
|
||||
return activity;
|
||||
}
|
||||
|
||||
/* Act on the page.
|
||||
|
||||
|
@ -31,16 +33,18 @@ Be sensitive to changes and update the state.
|
|||
@return {boolean} the state
|
||||
*/
|
||||
static act(filters) {
|
||||
|
||||
console.log("ShopAI works here! Click on the button in the toolbar or website to start.");
|
||||
console.log(
|
||||
"ShopAI works here! Click on the button in the toolbar or website to start.",
|
||||
);
|
||||
// TODO
|
||||
}
|
||||
|
||||
/* Set the program to standby utnil next load.
|
||||
*/
|
||||
static standby() {
|
||||
|
||||
console.log("ShopAI doesn't work here (yet). Expecting something? Try checking your filters. If you know what you're doing, feel free to create a filter yourself.");
|
||||
console.log(
|
||||
"ShopAI doesn't work here (yet). Expecting something? Try checking your filters. If you know what you're doing, feel free to create a filter yourself.",
|
||||
);
|
||||
}
|
||||
|
||||
static job() {
|
||||
|
@ -55,5 +59,4 @@ Be sensitive to changes and update the state.
|
|||
}
|
||||
|
||||
watchman.job();
|
||||
|
||||
})();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue