Filters should be written according to the scheme: domain.com##+js(function, arg, arg2) or /^regex/##+js(function, arg, arg2).

And if we want to disable a single filter for a given page, we use the following scheme: domain.com#@#+js(function, arg, arg2) (available since 1.45.0 version).

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:

FUNCTIONARGUMENTS
addToSessionStorage - add values to session storage (available from 1.45.0+)

storageKey - key

storageValue - value (from 1.45.0+ you can type $now$, to set current timestamp or $currentDate$ to set current time or $currentISODate$ to set current time and date in ISO format)

addToStorage - add values to local storage

storageKey - key

storageValue - value (from 1.45.0+ you can type $now$, to set current timestamp or $currentDate$ to set current time or $currentISODate$ to set current time and date in ISO format)

bakeCookie - bake delicious 🍪

cookieName - cookie name

cookieValue - cookie value (from 1.45.0+ you can type $now$, to set current timestamp or $currentDate$ to set current time or $currentISODate$ to set current time and date in ISO format)

expiresDays - numbers of days after cookie expires

domain - custom domain (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)

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)

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 the redirect target requires a path that is different for each subpage, then enter true, otherwise you can skip it

cookieName - cookie name (optional)

Follow us