commit 74ce8fe3a846d0ec085df77fa40ff2f76698d587 Author: Jens Dietze Date: Thu Dec 14 08:53:51 2017 +0100 add redmine_enhancer.user.js diff --git a/redmine_enhancer.user.js b/redmine_enhancer.user.js new file mode 100644 index 0000000..92d381b --- /dev/null +++ b/redmine_enhancer.user.js @@ -0,0 +1,26 @@ +// ==UserScript== +// @name Redmine Enhancer +// @namespace https://www.cocus.de/ +// @version 0.2.3 +// @description try to take over the world, or at least redmine! +// @author Jens Dietze, COCUS +// @encoding utf-8 +// @license https://creativecommons.org/licenses/by-sa/4.0/ +// @match https://redmine.cocus.com/ +// @match https://redmine.cocus.com/my/page +// @updateURL https://git.jdsv.de/snippets/1 +// @downloadURL https://git.jdsv.de/snippets/1 +// @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; + } + }); +})();