Filters should be written according to the scheme: domain.com##+js(function, arg, arg2)
or /^regex/##+js(function, arg, arg2)
.
If we want to apply the same function with the same arguments to several domains, then domains should be separated with a comma, e.g. domain.com,domain2.com,domain.org##+js(function, arg, arg2)
.
The following functions are available:
FUNKCJA | ARGUMENTY |
---|---|
addToStorage - add values to local storage | storageKey - key storageValue - value |
bakeCookie - bake delicious 🍪 | cookieName - cookie name cookieValue - cookie value expiresDays - numbers of days after cookie expires domain - custom domain (optional) |
clickInteractive - click element, if the document has finished loading and the document has been parsed but sub-resources such as scripts, images, stylesheets and frames are still loading | element - CSS selector (if you enter the last argument, you'll need to specify XPath selector) cookieNameOrMaxCount - cookie name or max value of counter (optional) text - text in the element (optional) |
clickTimeout - click element, when it will be available | element - CSS selector (if you enter the last argument, you'll need to specify XPath selector) cookieNameOrMaxCount - cookie name or max value of counter (optional) text - text in the element (optional) |
clickComplete - click element, when the website will be fully loaded | element - CSS selector (if you enter the last argument, you'll need to specify XPath selector) cookieNameOrMaxCount - cookie name or max value of counter (optional) text - text in the element (optional) |
redirect - redirect from specific site (if this should be exact URL, then on the front of URL you'll need to write equality mark) to a given subpage | redirectPoint - target of redirection path - if a path that is different for each subpage is needed to redirect point, then we enter 'true', otherwise nothing cookieName - cookie name (optional) |