--- /dev/null
+// ==UserScript==
+// @name HIValign: automatic e-mail address
+// @namespace http://tampermonkey.net/
+// @version 0.1
+// @description also focuses on "(optional) title" input field
+// @author You
+// @match https://www.hiv.lanl.gov/cgi-bin/VIRALIGN/viralign.cgi
+// @grant none
+// @run-at document-end
+// ==/UserScript==
+
+(function() {
+ 'use strict';
+
+ function get0(s) {
+ var sel = document.querySelectorAll(s);
+ if (sel.length == 1) {
+ var out = sel[0];
+ console.log(out);
+ return out;
+ }
+ }
+
+ if (document.title == 'HIValign') {
+ var address = 'murakdar@mit.edu';
+ get0('input[name=EMAIL]').value = address;
+ get0('input[name=EMAIL2]').value = address;
+ get0('input[name=titleFromUser]').focus();
+ }
+})();
\ No newline at end of file