您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
2023/10/20 11:22:16
// ==UserScript== // @license MIT // @name 解决甘特图中里程碑重叠的问题 - myhexin.com // @namespace Violentmonkey Scripts // @match http://cf.myhexin.com/pages/viewpage.action // @grant none // @version 1.0 // @author - // @description 2023/10/20 11:22:16 // ==/UserScript== window.onload = () => { document.querySelectorAll('.heading-expand-body').forEach((container) => { [...container.querySelectorAll('.roadmap-macro-view >svg >g >g:nth-child(3) text')] .sort((a, b) => a.getAttribute('x') - b.getAttribute('x')).forEach((it, idx) => it.style = `transform:translateY(${(idx%3-1) * 20}px)`) }) }