This is a plugin for pingcode
目前為
// ==UserScript==
// @name pingcodeHelper
// @namespace http://tampermonkey.net/
// @version 0.2
// @description This is a plugin for pingcode
// @author Amos
// @match https://onetoken.pingcode.com/*
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant none
// ==/UserScript==
var pageURLCheckTimer = setInterval(
function () {
if (this.lastPathStr !== location.pathname ||
this.lastQueryStr !== location.search ||
this.lastPathStr === null ||
this.lastQueryStr === null
) {
this.lastPathStr = location.pathname;
this.lastQueryStr = location.search;
gmMain();
}
}, 222
);
function gmMain() {
setTimeout(function () {
let x = document.querySelector("#app-host-container > app-agile-root > app-agile-actual-root > agile-global > agile-global-query-detail > thy-header > div.layout-header-content > div > thy-nav > a.styx-secondary-nav-link.nav-link > span")
console.log(x);
console.log(x.textContent.trim());
document.title = x.textContent.trim();
}, 3000);
}
(function() {
'use strict';
setInterval(()=>{
let workItems=document.querySelectorAll('.work-item-info')
for(let item of workItems){
let status=item.querySelector('.flexible-text-container').textContent
if(status==='关闭'||status==='已完成'){
item.parentElement.parentElement.style='display:none'
}
}
},1000)
console.log('starting')
// Your code here...
})();