2017-12-14 08:53:51 +01:00
|
|
|
// ==UserScript==
|
|
|
|
|
// @name Redmine Enhancer
|
|
|
|
|
// @namespace https://www.cocus.de/
|
2017-12-14 08:55:00 +01:00
|
|
|
// @version 0.3.0
|
2017-12-14 08:53:51 +01:00
|
|
|
// @description try to take over the world, or at least redmine!
|
2021-01-10 14:18:37 +01:00
|
|
|
// @author Jens Rey, COCUS
|
|
|
|
|
// @encoding utf-8
|
|
|
|
|
// @license https://creativecommons.org/licenses/by-sa/4.0/
|
2017-12-14 08:53:51 +01:00
|
|
|
// @match https://redmine.cocus.com/
|
|
|
|
|
// @match https://redmine.cocus.com/my/page
|
2021-01-10 14:18:37 +01:00
|
|
|
// @updateURL https://git.rey.nrw/jens/userscripts/raw/branch/master/redmine_enhancer.user.js
|
|
|
|
|
// @downloadURL https://git.rey.nrw/jens/userscripts/raw/branch/master/redmine_enhancer.user.js
|
2017-12-14 08:53:51 +01:00
|
|
|
// @grant none
|
|
|
|
|
// ==/UserScript==
|
|
|
|
|
|
|
|
|
|
(function() {
|
|
|
|
|
'use strict';
|
|
|
|
|
$(document).ready(function() {
|
|
|
|
|
var url = 'https://redmine.cocus.com/issues?query_id=84';
|
|
|
|
|
if ($('#account ul li').size() == 1) {
|
|
|
|
|
window.location.href = 'https://redmine.cocus.com/login?back_url=' + decodeURI(url);
|
|
|
|
|
} else {
|
|
|
|
|
window.location.href = url;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
})();
|