diff --git a/src/scripts/tabOnUpdated.ts b/src/scripts/tabOnUpdated.ts index cdfb405..a8afc22 100644 --- a/src/scripts/tabOnUpdated.ts +++ b/src/scripts/tabOnUpdated.ts @@ -23,8 +23,7 @@ async function ctxFromURL(href: string): Promise { const url = new URL(href); if (!getSourcePlatfromSettingsFromHostname(url.hostname)) return - if (url.pathname.startsWith('/watch?')) return - if (url.pathname.startsWith('/channel?')) return + if (!(url.pathname.startsWith('/watch') || url.pathname.startsWith('/channel'))) return const { redirect, targetPlatform } = await getExtensionSettingsAsync('redirect', 'targetPlatform'); const descriptor = ytService.getId(href);