Show glossary definitions on your site

With the glossary tooltip, any link from your site to a glossary.io term, like ActivityPub, gets a wavy underline, and its short definition appears when a visitor hovers over it or reaches it with the keyboard. Readers get the meaning without leaving your page.

Install it

  1. Ask for access. glossary.io answers only the sites on its list, so send a request with your site's address. You'll get an email once it's approved.
  2. Add the script to every page that links to terms, just before </body>:
    <link rel="dns-prefetch" href="//glossary.io">
    <script async src="https://glossary.io/glossary-tooltip.js"></script>
  3. Link words to their glossary pages. Use the address of the term's page on glossary.io:
    <a href="https://glossary.io/activitypub/">ActivityPub</a>
    Find terms with the search.

How it works

Leave a link plain

Add rel="nofollow" to the link, or data-glossary="off" to it or to any element around it:

<a href="https://glossary.io/activitypub/" data-glossary="off">ActivityPub</a>

Match your colors

Set any of these on :root in your stylesheet:

VariableDefaultColors
--glossary-link-color#B22D47Term links
--glossary-link-hover-color#336D46Term links on hover
--glossary-underline-color#cccThe wavy underline
--glossary-tooltip-background#050520The tooltip
--glossary-tooltip-color#F4F5F7The tooltip's text
:root {
  --glossary-link-color: #0e52ae;
  --glossary-tooltip-background: #222;
}

Host the script yourself

You can serve your own copy of glossary-tooltip.js from your site; it still loads definitions from glossary.io. Give the file a name that changes with its content (like glossary-tooltip.5644e6d0.js), so browsers pick up a new version right away, and update your copy now and then.

Request access

Each address counts on its own: if your site answers with and without www, list both. Sites must use https.

Only used about your request and your site's access; it's never published or shared.

One per line, up to 6. For example, example.com and www.example.com

What your site is about and where the term links will go. Up to 1,000 characters.

Along with what you enter, we keep your country and a scrambled form of your IP address (for a day) to limit spam. Requests are deleted 30 days after they're declined or left waiting, and 90 days after they're approved; an approved site's entry keeps your name and email.