From c501e3fe70bfb7cd1e3f006e634b482d7c07c108 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=95=E5=A4=952077?= <274166795@qq.com> Date: Fri, 20 Jun 2025 12:05:34 +0800 Subject: [PATCH] Update toc.js --- today/book/toc.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/today/book/toc.js b/today/book/toc.js index b918299..e736c90 100644 --- a/today/book/toc.js +++ b/today/book/toc.js @@ -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)}}})();