From ed7038fec498028ebf85976ea9864a8c4f4b7252 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=B5=B5=E5=90=8C=E5=AD=A6?= Date: Wed, 18 Dec 2024 19:46:58 +0800 Subject: [PATCH] Update tiaozhuan.js --- themes/Ying/static/js/tiaozhuan.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/themes/Ying/static/js/tiaozhuan.js b/themes/Ying/static/js/tiaozhuan.js index 99cd285f..b8f71158 100644 --- a/themes/Ying/static/js/tiaozhuan.js +++ b/themes/Ying/static/js/tiaozhuan.js @@ -19,7 +19,8 @@ function checkParent(element, classNames) { !target.href.includes('usj.cc') && !target.href.includes('douban.com') && !target.href.includes('bilibili.com') && - !target.href.includes('github.com') && !target.href.includes('https://beian.miit.gov.cn') && + !target.href.includes('github.com') && + !target.href.includes('https://beian.miit.gov.cn') && target.hostname !== window.location.hostname) { e.preventDefault(); let encodedUrl = btoa(target.href); // Base64 encode the URL