Mozzarella

Home

Dynamic links

1) Click the extension icon
2) Click the setting icon
3) Specify your shortcuts in JSON
4) Click Save button
5) Reopen the extension

Tabs structure:
[
{
"title": "tab title",
"icon": "mdi icon class",
"contentCallBack": "buildCards",
"contentArgs": {
"default": [

],
"pageSpecific": [
{
"matchPattern": "",
"matchFlag": "",
"cards": [
]
}
]
}
}
]

Card structure:
{
"title": "card title",
"icon": "mdi icon class mdi-48px",
"action": "action name",
"args": [
"action args"
]
}

Aviable actions:
name: redirect
"action": "redirect",
"args": [
string:url to redirect to *
]
* "~" = root url of current page

name: tabOpenThenClose
"action": "redirect",
"args": [
string:url to redirect to *
bool:reload current page on after load
]
* "~" = root url of current page

Working Setting:
[
{
"title": "",
"icon": "mdi-heart",
"contentCallBack": "buildCards",
"contentArgs": {
"default": [
{
"title": "Admin",
"icon": "mdi-upload mdi-48px",
"action": "redirect",
"args": [
"~/wp-admin"
]
},
{
"title": "ClearCache",
"icon": "mdi-refresh mdi-48px",
"action": "tabOpenThenClose",
"args": [
"~/",
false
]
}
],
"pageSpecific": [
{
"matchPattern": ".*",
"matchFlag": "gid",
"cards": [
{
"title": "View",
"icon": "mdi-view-list mdi-48px",
"action": "redirect",
"args": [
"~/"
]
}
]
}
]
}
},
{
"title": "",
"icon": "mdi-download",
"contentCallBack": "buildCards",
"contentArgs": {
"default": [
],
"pageSpecific": [
]
}
}
]

Install