bg-function
bg-function
provides ability to safely execute several internal functions
which you might find handy and in future we will add some more similar
functions.
The syntax of bg-function
takes two arguments function
and attr
and
converts that into function call with the specified arguments, as you can see in
the image below:
In that example script removes all cookies for matched domain, in this case
facebook
.
removeCookie
Removes all cookies for matched domain in attr
.
<$function=removeCookie>
<$attr=facebook>
reloadCurrentTab
Reloads current tab.
<$function=reloadCurrentTab>
removeCurrentWindow
Removes current window.
<$function=removeCurrentWindow>
windowCreation
Creates new window
<$function=windowCreation>
More
You can find list of the existing functions here. In case you need more function for easier access, feel free to request it here and ideally provide also PR.