// ==UserScript== // @name PubMed Go To Publisher // @version 0.1.0 // @author sincostandx // @description Automatically redirect to publisher website for full text when you click on the title in the PubMed search result list // @namespace https://greasyfork.org/users/171198 // @include http://www.ncbi.nlm.nih.gov/pubmed/* // @include https://www.ncbi.nlm.nih.gov/pubmed/* // @downloadURL none // ==/UserScript== var doi_link = document.querySelectorAll('a[ref="aid_type=doi"]'); if (doi_link.length === 1) location.replace(doi_link[0].href);