Skip to content

Commit

Permalink
Add a rule for Google -> Kagi
Browse files Browse the repository at this point in the history
  • Loading branch information
mshibanami committed Aug 3, 2024
1 parent cf153ec commit 779f569
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
Binary file not shown.
11 changes: 11 additions & 0 deletions docs/library/rule-sets/16_google_search_to_kagi/metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"aboutUrl": "https://github.com/mshibanami/redirect-web/discussions/47",
"contributorGitHubIds": [
"inhzus"
],
"imageFiles": [
"cover.webp"
],
"primaryCategoryId": "search",
"secondaryCategoryId": "privacy_and_security"
}
25 changes: 25 additions & 0 deletions docs/library/rule-sets/16_google_search_to_kagi/rule-set.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"bundleID": "io.github.mshibanami.RedirectWebForSafari",
"formatVersion": "2",
"kind": "RedirectList",
"redirects": [
{
"captureGroupProcesses": [],
"comments": "We now can set Kagi as the default search engine for Safari.",
"destinationURLPattern": "https:\/\/kagi.com\/search?q=$1",
"exampleURLs": [
"https:\/\/www.google.com\/search?q=hello&ie=UTF-8&oe=UTF-8&hl=en&client=safari",
"https:\/\/www.google.com\/search?client=safari&rls=en&q=hello&ie=UTF-8&oe=UTF-8"
],
"excludeURLPatterns": [],
"kind": "Redirect",
"sourceURLPattern": {
"type": "regularExpression",
"value": "https?:\\\/\\\/(?:www\\.)?google\\.(?:com|com\\.[a-z]{2}|co\\.[a-z]{2}|[a-z]{2})\\\/search\\?(?:.*&)?q=([^&]*).*"
},
"title": "Google -> Kagi",
"type": "originalRedirect"
}
]
}

0 comments on commit 779f569

Please sign in to comment.