Browser extension and bookmarklet
Both tools do the same job: they collect the fonts of the page you are looking at and open them in the generator, so you can build a fallback stack for a font that is not in the catalog. Nothing is uploaded: the data goes from that page's tab straight to a fontstay.dev tab in your browser.
Which one to use
- The bookmarklet works in every desktop browser and needs no installation, but a site with a strict Content Security Policy can block it (Firefox does so most often).
- The extension also works on sites with a strict Content Security Policy. For now it is installed from source in Chrome, Edge and other Chromium browsers.
What the tools read and send
When you run either tool on a page, it reads:
- The address of the site and the page title.
- The @font-face declarations of the page (family, weight, style, format, source URL), found in its style sheets.
- The font files the page uses, downloaded again by the page without cookies: at most 8 files, 10 MB each and 30 MB in total.
- The family, size, weight and line height that the body, the first headings and the first button use.
They do not read the text of the page, forms, cookies or storage.
Nothing is uploaded to a server. The data is passed to a fontstay.dev tab in your browser, checked and stored in your browser for ten minutes at most.
The generator shows a summary ("Import from <site>?") and uses nothing until you accept it.
Bookmarklet
A bookmarklet is a bookmark that holds a small program instead of an address. Clicking it on a page runs the program on that page.
- Drag the "Send to fontstay" link below to your bookmarks bar. If you cannot drag it, copy the code, create a new bookmark and paste the code as its address.
- Open the website whose fonts you want.
- Click the bookmark. A fontstay.dev tab opens and asks you to confirm the import.
If the browser blocks the new tab, the bookmarklet copies the font names, sizes and the page title (no font files) to the clipboard. Paste them into the "Add a font" field of the generator; the origin is then shown as unverified.
If the site blocks the bookmarklet, use the extension or paste the copied data into the "Add a font" field.
Browser extension
The extension adds a toolbar button. Click it on any page and a fontstay.dev tab opens with the fonts of that page, ready to confirm.
It asks for the "activeTab" and "scripting" permissions only. It cannot read any page until you click its button, and its only standing access to a site is the fontstay.dev import page.
Availability
- Chrome, Edge and other Chromium browsers (Manifest V3): install from source, see below.
- Firefox: not supported yet.
- Safari: not supported yet.
- Browser stores: the extension is not published in the Chrome Web Store, Edge Add-ons or Firefox Add-ons yet. Store links will appear here when it is.
Install from source
- Download the repository from GitHub (the green Code button, then Download ZIP) and unzip it, or clone it with git.
- Open chrome://extensions (edge://extensions in Edge) and turn on Developer mode.
- Choose Load unpacked and select the "extension" folder of the repository.
- Open a website and click the fontstay button in the toolbar (pin it from the puzzle-piece menu if it is hidden).