(() => { const now = new Date(); const yyyy = now.getFullYear(); const mm = String(now.getMonth() + 1).padStart(2, "0"); const dd = String(now.getDate()).padStart(2, "0"); const today = `${yyyy}-${mm}-${dd}`; document.querySelectorAll('i#time.icon-calendar').forEach(icon => { const span = icon.closest("span"); if (!span) return; // 删除 icon 后面的所有兄弟节点(只保留 icon) let node = icon.nextSibling; while (node) { const next = node.nextSibling; span.removeChild(node); node = next; } span.appendChild(document.createTextNode(today)); }); })();