您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Toggl (see http://toggl.com) is an online time tracking platform and this user script integrates it so that you can easily start and stop time entries and quickly recognize which task is currently active. More details can be found at https://github.com/jurgenhaas/toggl-button-greasemonkey
当前为
// ==UserScript== // @name Toggl-Button Redmine // @namespace https://github.com/jurgenhaas/toggl-button-greasemonkey // @version 1.2 // @include http*://www.redmine.org/issues/* // @grant GM_xmlhttpRequest // @grant GM_addStyle // @grant GM_getResourceText // @grant GM_getValue // @grant GM_setValue // @grant GM_info // @grant GM_registerMenuCommand // @require https://greasyfork.org/scripts/2670-toggllibrary/code/TogglLibrary.js // @resource togglStyle https://raw.githubusercontent.com/jurgenhaas/toggl-button-greasemonkey/v1.1/TogglLibrary.css // @description Toggl (see http://toggl.com) is an online time tracking platform and this user script integrates it so that you can easily start and stop time entries and quickly recognize which task is currently active. More details can be found at https://github.com/jurgenhaas/toggl-button-greasemonkey // ==/UserScript== new TogglButtonGM('#content', function (elem) { var description, projectIds = [], numElem = elem.querySelector('h2', elem), titleElem = elem.querySelector('h3', elem), authorElem = elem.querySelector('.author .user', elem), projectElem = document.querySelector('h1'); description = titleElem.textContent.trim(); if (numElem !== null) { description = numElem.textContent.trim() + " " + description; } if (authorElem !== null) { projectIds.push(authorElem.textContent.trim()); } if (projectElem !== null) { projectIds.push(projectElem.textContent.trim()); } return { className: 'redmine', description: description, projectIds: projectIds }; });