您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
支持 jira 表格字段跳转
// ==UserScript== // @icon https://mall.hipac.cn/ico/favicon.ico // @name hipac jira链接跳转助手 // @namespace http://www.hipac.cn/ // @version 0.1 // @description 支持 jira 表格字段跳转 // @author 午休 // @match *://jira.yangtuojia.com/* // @grant none // ==/UserScript== (function() { 'use strict'; if(typeof $ === 'undefined'){ return; } // 绑定跳转事件 // Your code here... $('body').on('click','.drill_through_table tr td:nth-child(2)',function(){ window.open(`//jira.yangtuojia.com/browse/${$(this).html()}`); }) // 添加样式 let style = document.createElement("style"); style.type = "text/css"; let text = document.createTextNode(` .drill_through_table tr td:nth-child(2){ color: #0052cc; cursor: pointer; } .drill_through_table tr td:nth-child(2):hover { color: #0065ff; text-decoration: underline; } `); style.appendChild(text); let head = document.getElementsByTagName("head")[0]; head.appendChild(style); })();