Skip to content

Instantly share code, notes, and snippets.

@dnephin
Created December 2, 2015 19:21
Show Gist options
  • Save dnephin/1e7a440d2e9d3518e5eb to your computer and use it in GitHub Desktop.
Save dnephin/1e7a440d2e9d3518e5eb to your computer and use it in GitHub Desktop.
javascript: (function(e, a, g, h, f, c, b, d) {
if (!(f = e.jQuery) || g > f.fn.jquery || h(f)) {
c = a.createElement("script");
c.type = "text/javascript";
c.src = "//ajax.googleapis.com/ajax/libs/jquery/" + g + "/jquery.min.js";
c.onload = c.onreadystatechange = function() {
if (!b && (!(d = this.readyState) || d == "loaded" || d == "complete")) {
h((f = e.jQuery).noConflict(1), b = 1);
f(c).remove()
}
};
a.documentElement.childNodes[0].appendChild(c)
}
})(window, document, "1.3.2", function($, L) {
var pmids;
"ovidsp.tx.ovid.com" == document.domain || "www.ncbi.nlm.nih.gov" == document.domain ? ("ovidsp.tx.ovid.com" == document.domain ? pmids = $("td.titles-checkbox input:checked").parent().next().find("div.article-ui").map(function() {
return $(this).text().match(/([0-9]+)/)[0]
}).get().join(",") : "www.ncbi.nlm.nih.gov" == document.domain && (pmids = $("div.rprtnum input:checked").map(function() {
return this.value
}).get().join(",")), "" != pmids ? window.location.href = "http://mesh.med.yale.edu/grid/" + pmids : alert("Hmm, looks like you didn't select any records, or did you?")) : alert("Hmm, looks like you are not on a PubMed or Ovid MEDLINE page, or are you?");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment