This is a Google Apps Script that can be used to add Perma.cc links to a Google Doc, either by:
- replacing all links in a document with Perma.cc links
- replacing all links in a selection with Perma.cc links
- appending bracketed Perma.cc links to all links (usually for a bibliography)
- appending bracketed Perma.cc links to footnotes
- appending bracketed Perma.cc links to footnotes in a Bluebook-compliant format.
You'll need a Perma.cc API key.
Instructions for use are here.