From 9e728914591c0d60f48b897f7294f752f8082415 Mon Sep 17 00:00:00 2001 From: NoPlagiarism <37241775+NoPlagiarism@users.noreply.github.com> Date: Sun, 11 Jun 2023 16:39:19 +0500 Subject: [PATCH] Small regex improvement & twitter www optional --- src/config.json | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/config.json b/src/config.json index a465f62..71438fa 100644 --- a/src/config.json +++ b/src/config.json @@ -85,12 +85,12 @@ }, "targets": [ "^https?:\\/{2}redirect\\.invidious\\.io\\/.*", - "^https?:\\/{2}(?:www\\.|m\\.|)youtube.com(\\/|$)(?!iframe_api\\/|redirect\\/)", + "^https?:\\/{2}(?:www\\.|m\\.)youtube.com(\\/|$)(?!iframe_api\\/|redirect\\/)", "^https?:\\/{2}img\\.youtube.com\\/vi\\/.*\\/..*", "^https?:\\/{2}(?:i|s)\\.ytimg.com\\/vi\\/.*\\/..*", - "^https?:\\/{2}(?:www\\.|)youtube.com\\/watch?v=..*", + "^https?:\\/{2}(?:www\\.)youtube.com\\/watch?v=..*", "^https?:\\/{2}youtu\\.be\\/..*", - "^https?:\\/{2}(?:www\\.|)(youtube|youtube-nocookie)\\.com\\/embed\\/..*" + "^https?:\\/{2}(?:www\\.)(youtube|youtube-nocookie)\\.com\\/embed\\/..*" ], "name": "YouTube", "options": { @@ -140,8 +140,8 @@ } }, "targets": [ - "^https?:\\/{2}(www\\.|mobile\\.|)twitter\\.com(\\/|$)", - "^https?:\\/{2}(pbs\\.|video\\.|)twimg\\.com(\\/|$)", + "^https?:\\/{2}(www\\.|mobile\\.)?twitter\\.com(\\/|$)", + "^https?:\\/{2}(pbs\\.|video\\.)twimg\\.com(\\/|$)", "^https?:\\/{2}platform\\.twitter\\.com/embed(\\/|$)", "^https?:\\/{2}t\\.co(\\/|$)" ], @@ -167,7 +167,7 @@ } }, "targets": [ - "^https?:\\/{2}(www\\.|)tiktok\\.com(\\/|$)" + "^https?:\\/{2}(www\\.)?tiktok\\.com(\\/|$)" ], "name": "TikTok", "options": { @@ -196,7 +196,7 @@ } }, "targets": [ - "^https?:\\/{2}(www\\.|old\\.|np\\.|new\\.|amp\\.|)(reddit|reddittorjg6rue252oqsxryoxengawnmo46qy4kyii5wtqnwfj4ooad)\\.(com|onion)(?=\\/u(ser)?\\/|\\/r\\/|\\/search|\\/new|\\/?$)", + "^https?:\\/{2}(www\\.|old\\.|np\\.|new\\.|amp\\.)(reddit|reddittorjg6rue252oqsxryoxengawnmo46qy4kyii5wtqnwfj4ooad)\\.(com|onion)(?=\\/u(ser)?\\/|\\/r\\/|\\/search|\\/new|\\/?$)", "^https?:\\/{2}(i|(external-)?preview)\\.redd\\.it" ], "name": "Reddit", @@ -312,7 +312,7 @@ } }, "targets": [ - "^https?:\\/{2}(?:www\\.|m\\.|)imdb\\.com" + "^https?:\\/{2}(?:www\\.|m\\.)imdb\\.com" ], "name": "IMDb", "options": {