From 7bdcb430d1cf575351f13bac0732dfab7ef57424 Mon Sep 17 00:00:00 2001 From: lilaelephant <84687112+lilaelephant@users.noreply.github.com> Date: Sun, 7 Apr 2024 18:16:52 +0200 Subject: [PATCH] Add rule set for Youtube to open inside Yattee App --- .../rule-set.json | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 docs/rules-in-library/10_youtube_open_in_yattee_app/rule-set.json diff --git a/docs/rules-in-library/10_youtube_open_in_yattee_app/rule-set.json b/docs/rules-in-library/10_youtube_open_in_yattee_app/rule-set.json new file mode 100644 index 0000000..29531bf --- /dev/null +++ b/docs/rules-in-library/10_youtube_open_in_yattee_app/rule-set.json @@ -0,0 +1,38 @@ +{ + "bundleID" : "io.github.mshibanami.RedirectWebForSafari", + "kind" : "RedirectList", + "redirects" : [ + { + "captureGroupProcesses" : [ + + ], + "comments" : "", + "destinationURLPattern" : "yattee:\/\/watch?$1", + "exampleURLs" : [ + "https:\/\/piped.video\/watch?v=asqxzaNGRWo", + "https:\/\/youtube.com\/watch?v=asqxzaNGRWo", + "https:\/\/m.youtube.com\/watch?v=asqxzaNGRWo", + "https:\/\/www.youtube.com\/watch?v=asqxzaNGRWo", + "https:\/\/youtube.de\/watch?v=asqxzaNGRWo", + "https:\/\/youtube-nocookie.com\/watch?v=asqxzaNGRWo", + "https:\/\/m.youtube.com\/watch?v=ZxYZkz20lYA&pp=ygUIdGVzdGluZyA%3D" + ], + "excludeURLPatterns" : [ + { + "type" : "wildcard", + "value" : "https:\/\/youtube.com" + }, + { + "type" : "wildcard", + "value" : "https:\/\/www.youtube.com" + } + ], + "kind" : "Redirect", + "sourceURLPattern" : { + "type" : "regularExpression", + "value" : "(?:https?:\\\/\\\/)?(?:[\\w.-]+)?(?:youtube\\.com|piped\\.video|youtube-nocookie\\.com|youtube\\.de)\\\/watch\\?(.*)" + }, + "title" : "Youtube: Open in Yattee" + } + ] +}