Skip to content

Instantly share code, notes, and snippets.

@gylns
Last active June 7, 2016 05:16
Show Gist options
  • Save gylns/ddd4c0af3b6640d68eb2eb30de910705 to your computer and use it in GitHub Desktop.
Save gylns/ddd4c0af3b6640d68eb2eb30de910705 to your computer and use it in GitHub Desktop.
javascript:(function () {
var rl = document.getElementById("results-list");
var tl = rl.getElementsByClassName("text");
for (var t of tl)
{
var title = t.getElementsByClassName("title")[0];
var subtitle = t.getElementsByClassName("subtitle")[0];
var year = t.getElementsByClassName("year")[0];
title.innerHTML += " " + subtitle.innerHTML + (subtitle.innerHTML ? " " : "") + year.innerHTML;
title.href = title.href.replace(/\/book\//,"/content/pdf/") + ".pdf";
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment