Make JIRA Ticket Links Open Detailed View

Clicking a ticket id on a board opens the detailed ticket view in a new tab

当前为 2016-01-24 提交的版本,查看 最新版本

// ==UserScript==
// @name        Make JIRA Ticket Links Open Detailed View
// @namespace   chriskim06
// @description Clicking a ticket id on a board opens the detailed ticket view in a new tab
// @include     https://*jira*com/secure/*Board*
// @require     http://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js
// @require     https://gf.qytechs.cn/scripts/5392-waitforkeyelements/code/WaitForKeyElements.js?version=19641
// @version     1.1.2
// @grant       none
// @locale      en
// ==/UserScript==

this.$ = this.jQuery = jQuery.noConflict(true);

var url = window.location.href.match(/https:\/\/.*jira.*com/g)[0];
waitForKeyElements(".js-key-link", addOnClick);

function addOnClick(jNode) {
  //jNode.setAttribute("onclick", "window.open('" + jNode.attr("href") + "'); return false;");
  //jNode.setAttribute("target", "_blank");
  jNode.on('click', function() {
    window.location.href = url + jNode.attr('href');
  });
}

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址