auto-updated syntax formatting

This commit is contained in:
buzz-lightsnack-2007 2024-03-28 11:17:26 +08:00
parent 481ef03576
commit 5b06c3f967

View file

@ -4,7 +4,10 @@ Be sensitive to changes and update the state.
(async () => { (async () => {
// Import modules. // 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")); let reader = await import(chrome.runtime.getURL("scripts/reader.js"));
class watchman { class watchman {
@ -14,16 +17,15 @@ Be sensitive to changes and update the state.
@return {dictionary} the filter to follow @return {dictionary} the filter to follow
*/ */
static observe(URL = window.location.href) { static observe(URL = window.location.href) {
// Create the variable to determine the corresponding key. // Create the variable to determine the corresponding key.
let activity = false; let activity = false;
let filters = secretariat.specifics(`filters`, URL); // let filters = secretariat.specifics(`filters`, URL);
// Check if the filters exist. // Check if the filters exist.
activity = (filters); activity = filters;
return (activity); return activity;
}; }
/* Act on the page. /* Act on the page.
@ -31,16 +33,18 @@ Be sensitive to changes and update the state.
@return {boolean} the state @return {boolean} the state
*/ */
static act(filters) { static act(filters) {
console.log(
console.log("ShopAI works here! Click on the button in the toolbar or website to start."); "ShopAI works here! Click on the button in the toolbar or website to start.",
);
// TODO // TODO
} }
/* Set the program to standby utnil next load. /* Set the program to standby utnil next load.
*/ */
static standby() { static standby() {
console.log(
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."); "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() { static job() {
@ -55,5 +59,4 @@ Be sensitive to changes and update the state.
} }
watchman.job(); watchman.job();
})(); })();