This commit is contained in:
Hakadao
2022-08-25 00:42:00 +08:00
parent ce33767efc
commit aa3c4a7a4e
4 changed files with 402 additions and 1 deletions

View File

@@ -21,6 +21,8 @@ import { getCookie, i18n, setCookie, SVG_ICONS } from '~/utils'
|| /https?:\/\/www.bilibili.com\/?$/.test(currentUrl)
|| /https?:\/\/bilibili.com\/\?spm_id_from=.*/.test(currentUrl)
|| /https?:\/\/www.bilibili.com\/\?spm_id_from=(.)*/.test(currentUrl)
// || /https?:\/\/www.bilibili.com\/video\/.*/.test(currentUrl)
// || /https?:\/\/bilibili.com\/video\/.*/.test(currentUrl)
) {
// if the current homepage is an old version, redirect to the new version
// because they had some style errors in the old version