diff --git a/docs/library/rule-sets/17_google_search_to_startpage/cover.webp b/docs/library/rule-sets/17_google_search_to_startpage/cover.webp new file mode 100644 index 0000000..441ab30 Binary files /dev/null and b/docs/library/rule-sets/17_google_search_to_startpage/cover.webp differ diff --git a/docs/library/rule-sets/17_google_search_to_startpage/metadata.json b/docs/library/rule-sets/17_google_search_to_startpage/metadata.json new file mode 100644 index 0000000..7cd2485 --- /dev/null +++ b/docs/library/rule-sets/17_google_search_to_startpage/metadata.json @@ -0,0 +1,8 @@ +{ + "contributorGitHubIds": [], + "imageFiles": [ + "cover.webp" + ], + "primaryCategoryId": "search", + "secondaryCategoryId": "privacy_and_security" +} diff --git a/docs/library/rule-sets/17_google_search_to_startpage/rule-set.json b/docs/library/rule-sets/17_google_search_to_startpage/rule-set.json new file mode 100644 index 0000000..2771542 --- /dev/null +++ b/docs/library/rule-sets/17_google_search_to_startpage/rule-set.json @@ -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" + } + ] +}