feat: add traffic intelligence toolkit

This commit is contained in:
王源
2026-10-19 19:50:06 +08:00
commit f34e0e085a
10 changed files with 609 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
(() => {
document.querySelectorAll('[data-year]').forEach((node) => {
node.textContent = new Date().getFullYear();
});
document.querySelectorAll('a[href]').forEach((link) => {
if (link.hostname && link.hostname !== window.location.hostname) {
link.target = '_blank';
link.rel = 'noopener noreferrer';
}
});
})();