-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebfetch
6 lines (6 loc) · 1.01 KB
/
webfetch
1
2
3
4
5
6
{
"name": "webfetch",
"description": "provides info about your Typer system",
"author": "grosik",
"executeit": "async (data) => { return `<img src=\"${(fetch_browser().includes('Firefox') ? 'https://grosik.dev/cdn/typerfox.ico' : (navigator.userAgent.includes('Chrome') ? 'https://grosik.dev/cdn/typerchrome.png' : 'https://grosik.dev/typer/typer.ico'))}\" style=\"display: inline-block; border: solid #dfcdb4 2px; min-height: 7vw; min-width: 7vw; border-radius: 22px;\"> <div style=\"display: inline-block; margin-left: 0vw; margin-top: 1.5vh; vertical-align:top;\"><span style=\"display: table; vertical-align:top;\"><b class=\"bold\">Browser:</b> ${fetch_browser()}</span><span style=\"display: table;\"><b class=\"bold\">Packages:</b> ${await fetch_packages()} (TCM)</span><span style=\"display: table;\"><b class=\"bold\">Prompt prefix:</b> ${variables.prefix.replaceAll('{indicator}', indicator_default)}</span><span style=\"display: table;\"><b class=\"bold\">Computer OS:</b> ${fetch_system()}</span></div>` }"
}