From 5ab29ca9296ba264184464d7c10f1ab69fa4d2d0 Mon Sep 17 00:00:00 2001 From: kawamataryo Date: Tue, 25 Jul 2023 10:29:21 +0900 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20work=20with=20x.com?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 3 ++- src/lib/constants.ts | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 816cacd..b5b47f8 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,8 @@ "manifest": { "host_permissions": [ "https://bsky.social/*", - "https://twitter.com/*" + "https://twitter.com/*", + "https://x.com/*" ], "browser_specific_settings": { "gecko": { diff --git a/src/lib/constants.ts b/src/lib/constants.ts index 186dbb8..e999572 100644 --- a/src/lib/constants.ts +++ b/src/lib/constants.ts @@ -11,6 +11,8 @@ export const STORAGE_KEYS = { export const TARGET_URLS_REGEX = [ /^https:\/\/twitter\.com\/[^/]+\/following$/, /^https:\/\/twitter\.com\/[^/]+\/followers$/, + /^https:\/\/x\.com\/[^/]+\/following$/, + /^https:\/\/x\.com\/[^/]+\/followers$/, ] export const MESSAGE_TYPE = {