From 418ee1e496c66b97cb8f724b50b131375d7d53ec Mon Sep 17 00:00:00 2001 From: Manabu Nakazawa Date: Sun, 19 Nov 2023 20:56:54 +1000 Subject: [PATCH] Add an example rule --- .../0_example_rule/rule-set.redirectweb | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 docs/rules-in-library/0_example_rule/rule-set.redirectweb diff --git a/docs/rules-in-library/0_example_rule/rule-set.redirectweb b/docs/rules-in-library/0_example_rule/rule-set.redirectweb new file mode 100644 index 0000000..dd16d74 --- /dev/null +++ b/docs/rules-in-library/0_example_rule/rule-set.redirectweb @@ -0,0 +1,26 @@ +{ + "bundleID": "io.github.mshibanami.RedirectWebForSafari", + "kind": "RedirectList", + "redirects": [ + { + "comments": "With this rule, when you open https:\/\/example.com\/hello in Safari, you will see the search results for the word \"hello\".\n\nThis is a sample rule for illustrative purposes.\nChange or remove this rule to enjoy your own redirect rule! 🚀\n", + "destinationURLPattern": "https:\/\/www.google.com\/search?q=$1", + "exampleURLs": [ + "https:\/\/example.com\/hello" + ], + "excludeURLPatterns": [ + { + "type": "wildcard", + "value": "https:\/\/example.com\/" + } + ], + "isEnabled": true, + "kind": "Redirect", + "sourceURLPattern": { + "type": "wildcard", + "value": "https:\/\/example.com\/*" + }, + "title": "Example Redirect Rule" + } + ] +}