您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Highlight closed stories on JIRA Rapid Board.
// ==UserScript== // @name JIRA Rapid Board highlighter // @namespace http://www.kalee.hu // @version 0.0.4 // @description Highlight closed stories on JIRA Rapid Board. // @author Moondancer83 // @homepage https://github.com/Moondancer83/JIRARapidBoardHighlighter // @include /jira.*/secure/RapidBoard.jspa*/ // @grant none // @require https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js // ==/UserScript== (function() { 'use strict'; var colors = { done: "#e0efdc", my: "#efdce0" }; var head = $("head"); var username = $("#header-details-user-fullname").data('username'); setTimeout(function() { setStyles(); markMyIssues(); }, 2000); function setStyles() { head.append("<style>" + ".js-issue.ghx-issue-compact.ghx-done {background-color:" + colors.done+ "} " + ".js-issue.ghx-issue-compact.ghx-issue-my {background-color: " + colors.my + "}" + "</style>"); } function markMyIssues() { $(".ghx-end img[src*=" + username +"].ghx-avatar-img").closest(".js-issue:not('.ghx-done')").addClass("ghx-issue-my"); } })();