diff --git a/public/js/tiaozhuan.js b/public/js/tiaozhuan.js index 79273197..e9adcc9d 100644 --- a/public/js/tiaozhuan.js +++ b/public/js/tiaozhuan.js @@ -16,14 +16,14 @@ function checkParent(element, classNames) { } if (target && target.nodeName === 'A' && !checkParent(target, excludedClasses) && - !target.href.includes('koobai.com') && + !target.href.includes('usj.cc') && !target.href.includes('douban.com') && !target.href.includes('bilibili.com') && !target.href.includes('github.com') && target.hostname !== window.location.hostname) { e.preventDefault(); let encodedUrl = btoa(target.href); // Base64 encode the URL - let url = '/tiaozhuan?target=' + encodedUrl; + let url = '/tiaozhuan/index.html?target=' + encodedUrl; window.open(url, '_blank'); } }); diff --git a/themes/Ying/static/js/tiaozhuan.js b/themes/Ying/static/js/tiaozhuan.js index 79273197..e9adcc9d 100644 --- a/themes/Ying/static/js/tiaozhuan.js +++ b/themes/Ying/static/js/tiaozhuan.js @@ -16,14 +16,14 @@ function checkParent(element, classNames) { } if (target && target.nodeName === 'A' && !checkParent(target, excludedClasses) && - !target.href.includes('koobai.com') && + !target.href.includes('usj.cc') && !target.href.includes('douban.com') && !target.href.includes('bilibili.com') && !target.href.includes('github.com') && target.hostname !== window.location.hostname) { e.preventDefault(); let encodedUrl = btoa(target.href); // Base64 encode the URL - let url = '/tiaozhuan?target=' + encodedUrl; + let url = '/tiaozhuan/index.html?target=' + encodedUrl; window.open(url, '_blank'); } });