Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
ebiwd
rthelper
Commits
4a41296a
Commit
4a41296a
authored
Mar 30, 2017
by
Peter Walter
Browse files
use GM_info to capture version number
parent
306ede0e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
30 deletions
+1
-30
rthelper.user.js
rthelper.user.js
+1
-30
No files found.
rthelper.user.js
View file @
4a41296a
...
...
@@ -11,8 +11,7 @@
// ==/UserScript==
var
info
=
{};
info
.
version
=
'
2.5
'
;
info
.
version
=
GM_info
.
script
.
version
;
info
.
domain
=
'
https://helpdesk.ebi.ac.uk
'
;
info
.
path
=
''
;
// get 'nobody' id from https://helpdesk.ebi.ac.uk/REST/1.0/user/nobody
...
...
@@ -853,34 +852,6 @@ function init() {
}
})();
/*
(function systemsTicket() {
if (getUserId() === '') {
return;
}
var supportLink = "https://rt.ebi.ac.uk/extserv/Ticket/Create.html?Queue=26&Status=open&Requestors=systems@ebi.ac.uk&Owner=" + getUserId() + "&Focus=Subject";
// force redirect for systems tickets
if (document.location.href === "https://rt.ebi.ac.uk/extserv/Ticket/Create.html?Queue=26") {
document.location.href = supportLink;
}
// add quick link for creating systems tickets
var container = document.getElementById('topactions');
var link = document.createElement('a');
link.href = supportLink;
link.innerHTML = "Systems ticket";
link.title = "Create new systems ticket";
link.className = "rthelper-button";
if (document.location.href === link.href) {
link.className += ' rthelper-active';
}
container.appendChild(link);
})();
*/
(
function
adminPage
()
{
if
(
document
.
location
.
pathname
!==
info
.
path
+
'
/rthelper
'
)
{
return
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment