// ==UserScript==
// @name jira work statistics
// @namespace http://tampermonkey.net/
// @version 0.1
// @description jira工作量统计
// @author chegde
// @match *://jira.shopee.io/*
// @grant none
// ==/UserScript==
(function () {
"use strict";
const day = Array.from($(".customfield_10100"))
.map((a) => parseFloat(a.textContent, 10))
.reduce((a, total) => {
total = total + a;
return total;
}, 0);
var resultDom = document.createElement("div");
var style =
"" +
"margin:4px!important;" +
"position:fixed;" +
"top:30vh;" +
"z-index:1000;"+
"left:0px;" +
"";
resultDom.innerHTML = day;
resultDom.setAttribute("style", style);
document.documentElement.appendChild(resultDom);
})();