Skip to content

Commit

Permalink
Add Mojeek as a search engine option.
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAlex94 committed Apr 24, 2024
1 parent 6b43915 commit a32fe35
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 3 deletions.
7 changes: 4 additions & 3 deletions toolkit/components/search/SearchService.sys.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2287,11 +2287,12 @@ export class SearchService {
const defaultEngines = [
{ webExtension: { id: "bing@search.waterfox.net" }, orderHint: 100 },
{ webExtension: { id: "startpage@search.waterfox.net" }, orderHint: 90 },
{ webExtension: { id: "yahoo@search.waterfox.net" }, orderHint: 80 },
{ webExtension: { id: "mojeek@search.waterfox.net" }, orderHint: 80 },
{ webExtension: { id: "google@search.waterfox.net" }, orderHint: 70 },
{ webExtension: { id: "ddg@search.waterfox.net" }, orderHint: 60 },
{ webExtension: { id: "qwant@search.waterfox.net" }, orderHint: 50 },
{ webExtension: { id: "qwant@search.waterfox.net" }, orderHint: 60 },
{ webExtension: { id: "ddg@search.waterfox.net" }, orderHint: 50 },
{ webExtension: { id: "ecosia@search.waterfox.net" }, orderHint: 40 },
{ webExtension: { id: "yahoo@search.waterfox.net" }, orderHint: 30 },
];

const validEngines = defaultEngines.map(engine => {
Expand Down
1 change: 1 addition & 0 deletions toolkit/components/search/SearchUtils.sys.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ export var SearchUtils = {
"google@search.waterfox.net",
"ddg@search.waterfox.net",
"ecosia@search.waterfox.net",
"mojeek@search.waterfox.net",
]),

/**
Expand Down
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions waterfox/browser/components/search/extensions/mojeek/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "Mojeek",
"description": "Search the web using Mojeek",
"manifest_version": 2,
"version": "1.0",
"browser_specific_settings": {
"gecko": {
"id": "mojeek@search.waterfox.net"
}
},
"hidden": true,
"icons": {
"16": "favicon.ico",
"144": "favicon.png"
},
"web_accessible_resources": [
"favicon.ico",
"favicon.png"
],
"chrome_settings_overrides": {
"search_provider": {
"keyword": "@m",
"name": "Mojeek",
"search_url": "https://www.mojeek.com/search",
"search_form": "https://www.mojeek.com/",
"search_url_get_params": "q={searchTerms}"
}
}
}

0 comments on commit a32fe35

Please sign in to comment.