blogger-tools.js. Pass it two IDs: the ID of the
<div>or other container to which you want citations added; the ID of an
<span>or other container to which to add the “add citations” link. In my case here, the first is the
<div>containing the post body; the second, an empty
<span>in the byline.
Possible customisations: the
citation_remove_linkvariables contain the text for the “add citations” and “remove citations” links. The
citation_postvariables contain optional text to be added before and after the link.
And some mild tweaking: I excluded image links—links which contain only an image, for example the maps here and here—from autocitation; the results were more ugly than useful. And I’m toying with also excluding links to other pages here: it all starts getting a bit too self-referential, and to be quite honest nobody ever talks about me anyway…