From 1edf3822770c172a371ea7183e9d8582ffc9ffc2 Mon Sep 17 00:00:00 2001 From: Hakadao Date: Tue, 16 Jan 2024 23:26:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BB=8E=E7=A8=8D=E5=90=8E=E5=86=8D?= =?UTF-8?q?=E7=9C=8B=E6=89=93=E5=BC=80=E8=A7=86=E9=A2=91=E6=97=B6=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E8=B7=B3=E8=BD=AC=20#180?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/contentScripts/views/App.vue | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/contentScripts/views/App.vue b/src/contentScripts/views/App.vue index ada9b72a..cd1fa532 100644 --- a/src/contentScripts/views/App.vue +++ b/src/contentScripts/views/App.vue @@ -91,7 +91,7 @@ watch(() => settings.value.adaptToOtherPageStyles, () => { }) onMounted(() => { - openVideoPageIfBvidExists() + // openVideoPageIfBvidExists() if (isHomePage()) { // Force overwrite Bilibili Evolved body tag & html tag background color @@ -239,19 +239,19 @@ function handleOsScroll() { topBarRef.value?.handleScroll() } -// fix #166 https://github.com/hakadao/BewlyBewly/issues/166 -function openVideoPageIfBvidExists() { - // Assume the URL is https://www.bilibili.com/?bvid=BV1be41127ft&spm_id_from=333.788.seo.out +// // fix #166 https://github.com/hakadao/BewlyBewly/issues/166 +// function openVideoPageIfBvidExists() { +// // Assume the URL is https://www.bilibili.com/?bvid=BV1be41127ft&spm_id_from=333.788.seo.out - // Get the current URL's query string - const queryString = window.location.search - // Create a URLSearchParams instance - const urlParams = new URLSearchParams(queryString) - const bvid = urlParams.get('bvid') +// // Get the current URL's query string +// const queryString = window.location.search +// // Create a URLSearchParams instance +// const urlParams = new URLSearchParams(queryString) +// const bvid = urlParams.get('bvid') - if (bvid) - window.open(`https://www.bilibili.com/video/${bvid}`, '_self') -} +// if (bvid) +// window.open(`https://www.bilibili.com/video/${bvid}`, '_self') +// } provide('handleBackToTop', handleBackToTop) provide('handleRefresh', handleRefresh)