update commenting style

This commit is contained in:
buzzcode2007 2024-03-23 20:35:41 +08:00
parent 5066be6e87
commit 4b2e8db824
4 changed files with 59 additions and 71 deletions

View file

@ -8,13 +8,12 @@ Be sensitive to changes and update the state.
let reader = await import(chrome.runtime.getURL("scripts/reader.js"));
class watchman {
static observe(URL = window.location.href) {
/* Check the current URL.
/* Check the current URL.
Parameters:
URL: the page URL; default value is the current webpage
Returns: (dictionary) the filter to follow
*/
@param {string} URL the page URL; default value is the current webpage
@return {dictionary} the filter to follow
*/
static observe(URL = window.location.href) {
// Create the variable to determine the corresponding key.
let activity = false;
@ -26,21 +25,20 @@ Be sensitive to changes and update the state.
return (activity);
};
static act(filters) {
/* Act on the page.
/* Act on the page.
Parameters:
filters: the filter to work with
Returns: the state
*/
@param {dictionary} filters the filter to work with
@return {boolean} the state
*/
static act(filters) {
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() {
/* Set the program to standby utnil next load.
*/
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.");
}