tommorris (owner)

Revisions

gist: 209539 Download_button fork
public
Public Clone URL: git://gist.github.com/209539.git
Embed All Files: show embed
JavaScript #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// ==UserScript==
// @name JSTOR: Next and Prev adder
// @namespace http://tommorris.org/
// @description Add << and >> to JSTOR page
// @include http://*jstor.org*
// ==/UserScript==
 
document.getElementsByTagName("strong")[0].parentNode.getElementsByTagName("a")[0].innerHTML += " (prev)";
strongs = document.getElementsByTagName("strong");
strongs[strongs.length - 1].parentNode.getElementsByTagName("a")[0].innerHTML += " (next)";
if (document.getElementsByTagName("input")) {
document.getElementsByTagName("input")[0].blur();
}