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