From 403da957871ff6225ac9beafe907ee6b7a68c6de Mon Sep 17 00:00:00 2001 From: "ipcjs.mac" Date: Fri, 3 Nov 2023 16:44:28 +0800 Subject: [PATCH] =?UTF-8?q?fix(artl):=20=E9=80=82=E9=85=8Dfirebase?= =?UTF-8?q?=E7=9A=84=E5=BC=95=E7=94=A8=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/android_redirect_to_lang.user.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/android_redirect_to_lang.user.js b/scripts/android_redirect_to_lang.user.js index 04a7d2d8..d8c37fdb 100644 --- a/scripts/android_redirect_to_lang.user.js +++ b/scripts/android_redirect_to_lang.user.js @@ -82,8 +82,10 @@ console.log(`option: ${JSON.stringify(option)}`) main() function main() { - // https://developer.android.com/reference/ 里面的页面不支持多语言 - const isReferencePage = (location.host === URL_ANDROID || location.host === URL_ANDROID_CN) && location.pathname.startsWith('/reference') + // 引用页面不支持切换多语言, 例如: + // https://developer.android.com/reference/ + // https://firebase.google.com/docs/reference/ + const isReferencePage = location.pathname.startsWith('/reference') || location.pathname.startsWith('/docs/reference') if (isReferencePage) { GM_registerMenuCommand('(切换语言在当前页面无效)', () => { }) }