Skip to content

Commit

Permalink
Add an example rule
Browse files Browse the repository at this point in the history
  • Loading branch information
mshibanami committed Nov 19, 2023
1 parent dc324a0 commit 418ee1e
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions docs/rules-in-library/0_example_rule/rule-set.redirectweb
Original file line number Diff line number Diff line change
@@ -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"
}
]
}

0 comments on commit 418ee1e

Please sign in to comment.