Commit 5faa4108 authored by Peter Walter's avatar Peter Walter
Browse files

version 1.7

parent 65b5632b
......@@ -4,13 +4,13 @@
// @description Add some shortcut links to RT
// @match https://rt.ebi.ac.uk/*
// @include https://rt.ebi.ac.uk/extserv/*
// @version 1.6
// @version 1.7
// @updateURL http://www.ebi.ac.uk/~pwalter/rthelper/rthelper.user.js
// @run-at document-end
// ==/UserScript==
var info = {};
info['version'] = '1.6';
info['version'] = '1.7';
/*jshint scripturl:true, strict:false, jquery:true */
......@@ -600,6 +600,18 @@ function init() {
}
}
})();
(function hideCurrentSelection() {
var active = document.querySelectorAll('td .rthelper-active');
for (var i=0; i<active.length; i++) {
active[i].parentNode.className += ' hide-first-line';
}
var hides = document.querySelectorAll('.hide-first-line');
for (var i=0; i<hides.length; i++) {
hides[i].innerHTML = hides[i].innerHTML.replace(/^.*\s*<br>\s*<a/, '<a');
}
})();
// add quick link to add cc
(function addCcLink() {
......@@ -670,9 +682,12 @@ function init() {
labelAddress.appendChild(inputAddress);
inputAddress.type = 'text';
inputAddress.name = 'WatcherAddressEmail1';
inputAddress.title = 'Type email address and press enter';
inputAddress.style['visibility'] = 'hidden';
inputAddress.onblur = function() {
this.style['visibility'] = 'hidden';
if (!this.value) {
this.style['visibility'] = 'hidden';
}
return false;
};
var inputType = document.createElement('input');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment