assist extension and netcap
See Browser extension for installing and using the assist extension.
assist extension
Section titled “assist extension”assist extensionprints the folder to load the extension from unpacked: in Chrome with Load unpacked onchrome://extensions, or in Firefox with Load Temporary Add-on onabout:debugging, picking itsmanifest.json. On WSL it copies the extension toC:\tools\extensionand prints that path.assist extension --urlprints the download link of the latest signed Firefox build.assist extension --signsigns the extension with your Mozilla add-ons API key, inWEB_EXT_API_KEYandWEB_EXT_API_SECRET, and prints the.xpito install.
assist browser
Section titled “assist browser”With the assist web server running and the extension installed, assist browser reads the tab you have open in the browser, on GitHub, Azure DevOps or a local docs preview.
assist browser statusprints the extension’s version and whether a newer signed build exists, the tab’s URL and whether the extension is active on that tab. If it is not, reload the tab.assist browser snapshotsaves the tab’s page HTML to a file under~/.assist/browser/and prints its path.assist browser inspect <selector>lists the elements matching a CSS selector, each with its size, text and the chain of elements it sits inside.assist browser inspect --text <text>lists the elements showing that text instead.assist browser run --file <script>shows a JavaScript file in an approval panel on the tab and, once you click Run, prints what it returns, or its error. The script is the body of an async function, soreturnthe value to print. It needs Firefox 153 or later; the first time, click Allow scripts on the extension’s options page.assist browser consoleprints the tab’s console warnings and errors, uncaught errors and unhandled rejections, oldest first. Turn on Record console warnings and errors on the extension’s options page first.--allprints every tab’s,--since <duration>(such as10m) and--grep <text>filter them, and--limit <n>prints at most the newestn, 200 by default.
Every assist browser command takes:
--url <text>to read the most recently used tab whose URL containstextinstead of the tab in front.--server <url>to name the web server the extension connects to, when it isn’thttp://localhost:3100.
assist netcap
Section titled “assist netcap”netcap records the fetch and XHR requests a browser page makes, with their responses, to a JSONL file. It pairs with its own browser extension.
assist netcapstarts the recorder and prints the extension’s folder. Load it unpacked as above; Firefox needs version 128 or later. Browse, and matching requests are added to~/.assist/netcap/capture.jsonl. Press Ctrl+C to stop.-f <text>records only requests whose URL containstext.-o <dir>writes the file to another folder, and-p <port>listens on a port other than 8723.- Run it again after changing
-for-p, and reload the extension.
assist netcap extract-linkedin-posts [file]reads the LinkedIn posts out of a capture, with each one’s text, author, mentions, links and permalink, and writes them toposts.jsonbeside it.
