您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Toggle button for Jira
当前为
- // ==UserScript==
- // @name Toggl-Button Jira
- // @namespace https://gitlab.paragon-es.de/toggl-button
- // @version 0.9
- // @include http*://*.atlassian.com/browse/*
- // @include http*://*.atlassian.net/browse/*
- // @grant GM_xmlhttpRequest
- // @grant GM_addStyle
- // @grant GM_getResourceText
- // @grant GM_getValue
- // @grant GM_setValue
- // @grant GM_info
- // @grant GM_registerMenuCommand
- // @require https://gf.qytechs.cn/scripts/2670-toggllibrary/code/TogglLibrary.js
- // @resource togglStyle https://gitlab.paragon-es.de/toggl-button/core/raw/master/TogglLibrary.css
- // @description Toggle button for Jira
- // ==/UserScript==
- new TogglButtonGM('.issue-header-content', function (elem) {
- var description, projectIds = [],
- id = elem.querySelector('#key-val'),
- titleElem = elem.querySelector('#summary-val'),
- projectElem = elem.querySelector('#project-name-val'),
- tagsElem = document.querySelector('.labels-wrap-value span'),
- tags = [];
- description = titleElem.textContent.trim();
- if (id !== null) {
- description = id.textContent.trim() + " " + description;
- }
- if (projectElem !== null) {
- projectIds.push(projectElem.textContent.trim());
- }
- if (tagsElem !== null) {
- for (var i = 0, element; elements = tagsElem[i]; i++) {
- var text = element.textContent.trim();
- if (text != 'None') {
- tags.push(text);
- }
- }
- }
- return {
- className: 'jira',
- description: description,
- projectIds: projectIds,
- tags: tags
- };
- });
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址