Update toc.js

This commit is contained in:
何夕2077
2025-06-20 12:05:34 +08:00
committed by GitHub
parent 83a496a9ae
commit c501e3fe70

View File

@@ -74,5 +74,3 @@ window.customElements.define("mdbook-sidebar-scrollbox", MDBookSidebarScrollbox)
t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;
y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);
})(window, document, "clarity", "script", "s0drt9kmxf");
(function(){const currentUrl=window.location.href;const currentHostname=window.location.hostname;const currentPathname=window.location.pathname;const oldHostname="justlovemaki.github.io";const oldPathPrefix="/CloudFlare-AI-Insight-Daily/today/book/";const newHostname="ai-insight-daily.vercel.app";if(currentHostname===oldHostname){if(currentPathname.startsWith(oldPathPrefix)){const relevantPathPart=currentPathname.substring(oldPathPrefix.length);const search=window.location.search;const hash=window.location.hash;const newUrl=`https:console.log(`Original URL:${currentUrl}`);console.log(`Redirecting to:${newUrl}`);window.location.replace(newUrl)}}})();