DOI links in

DOI Logo
After a long period of absence, it is time to share a new tweak with you. Enjoy.

Literature research has become very easy during the last decade: using databases of scientific journals you barely have to leave your office searching for some particular information. However it is not as comfortable as it could be.

I’m a happy user of the digital object identifier (DOI) which links published documents with a unique identifier-string. The publishers website for the requested document can then be found easily by resolving the DOI on

About including the DOI-link in you biblatex bibliographies to provide an easy access to your references, I’ve written some time ago. Now I want to share some script to include the DOI link on the website of the popular scientific search engine Unfortunately they are providing the DOI in they article summaries, but do not link with, so you have to copy and paste it there manually to access the article. Crap! With a simple greasemonkey userscript you can drop that an have the link directly added to your locally shown webofknowledge website. Here’s the code:

// ==UserScript==
// @name        DOI links for
// @namespace   Henning Hollermann
// @description DOI links for
// @include     **
// @icon
// @version     1.0
// @grant       none
// ==/UserScript==

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <>.

    For any comments mail to

var doiResolver = "";
var doi = "";
var elements = document.getElementsByClassName("FR_label");
for (let FR_labelNode of elements) {
    if (FR_labelNode.innerHTML.match(/DOI:\s*/)) {
        doi = FR_labelNode.parentNode.children[1].innerHTML
        FR_labelNode.parentNode.children[1].innerHTML = "<a href=" + doiResolver + doi + ">" + doi + "</a>";

This is it. A short block of javascript, which now has to be installed as a new userscript in your browser. In chrome you can use the script even without any extension, but you should use Tampermonkey to manage them more easily. To test the script, access e.g. the article on the ball lightning observation and notice that the DOI has now got a link to resolve the identifier. Happy research, comments welcome!


Peter Pan. Kann fliegen mit Feenstaub.

Tagged with: , , , ,
Posted in Technik, Wissen und Wissenschaft
3 comments on “DOI links in
  1. Adoa says:

    My newest discovery is Zotero. It does an unbelievable amount of Magic™. You should have a look!

  2. laclaro says:

    Yes indeed! I do use this greasemonkey script with zotero.

  3. […] You can do that either by using the URL directly or resolve the digital object identifier (DOI) via DOIs are very useful, if you can get them. See e.g. this article. […]

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Posts by topic…
…by month
Have a look at…

%d bloggers like this: