From 3953effdad6d122cf94abe662d34a3801dd5f04d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=B5=B5=E5=90=8C=E5=AD=A6?= <94612053+imzql@users.noreply.github.com> Date: Sat, 3 Aug 2024 18:13:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D404=20=E4=B8=AD=E9=97=B4?= =?UTF-8?q?=E9=A1=B5=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/js/tiaozhuan.js | 4 ++-- themes/Ying/static/js/tiaozhuan.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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'); } });