您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Shortcut keys of > and < to trigger first two options in workflow transition.
当前为
- // ==UserScript==
- // @name Jira Workflow transitioner shortcuts
- // @namespace randomecho.com
- // @description Shortcut keys of > and < to trigger first two options in workflow transition.
- // @include https://*.atlassian.net/browse/*
- // @include */browse/*
- // @grant none
- // @copyright 2017 Soon Van
- // @author Soon Van - randomecho.com
- // @license http://opensource.org/licenses/BSD-3-Clause
- // @version 1.0
- // ==/UserScript==
- function transitionIssue(e) {
- var workflowTransitions = document.getElementsByClassName('issueaction-workflow-transition');
- if (!workflowTransitions[0])
- return;
- if (e.key === '>' || (e.shiftKey && e.keyCode === 190)) {
- workflowTransitions[0].click();
- } else if (e.key === '<' || (e.shiftKey && e.keyCode === 188) && workflowTransitions[1]) {
- workflowTransitions[1].click();
- }
- }
- document.addEventListener('keydown', transitionIssue, false);