Skip to content

Commit

Permalink
Add a rule for Google -> Startpage
Browse files Browse the repository at this point in the history
mshibanami committed Aug 3, 2024

Verified

This commit was signed with the committer’s verified signature.
mshibanami Manabu Nakazawa
1 parent 93ac90e commit f1fa75e
Showing 3 changed files with 32 additions and 0 deletions.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"contributorGitHubIds": [],
"imageFiles": [
"cover.webp"
],
"primaryCategoryId": "search",
"secondaryCategoryId": "privacy_and_security"
}
24 changes: 24 additions & 0 deletions docs/library/rule-sets/17_google_search_to_startpage/rule-set.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"bundleID": "io.github.mshibanami.RedirectWebForSafari",
"formatVersion": "2",
"kind": "RedirectList",
"redirects": [
{
"captureGroupProcesses": [],
"comments": "This redirects from Google Search to Startpage automatically. If you set the Google Search as the default search engine, Startpage will be the default search engine instead.",
"destinationURLPattern": "https:\/\/www.startpage.com\/sp\/search?query=$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 → Startpage",
"type": "originalRedirect"
}
]
}

0 comments on commit f1fa75e

Please sign in to comment.