返回首頁 

Greasy Fork is available in English.

Redmine Hide Tasks

hide tasks without remaining hours


Installer ce script?
// ==UserScript==// @name         Redmine Hide Tasks// @namespace    http://tampermonkey.net/// @version      0.1// @description  hide tasks without remaining hours// @author       Shuunen// @match        *://*/projects/*// @grant        none// ==/UserScript==(function() {'use strict';var allRemainingHours = document.querySelectorAll('.remaining_hours');for (var i = 0; i < allRemainingHours.length ; i++) {var task = allRemainingHours[i].parentElement;var remainingHours = parseInt(allRemainingHours[i].innerText);if (remainingHours === 0) { task.style.display = 'none'; }}})();