Added LibRedirect as a Default Search Engine #82
This commit is contained in:
parent
926ed4bb5c
commit
d22aed5057
Binary file not shown.
After Width: | Height: | Size: 52 KiB |
File diff suppressed because it is too large
Load Diff
After Width: | Height: | Size: 527 KiB |
|
@ -4,6 +4,7 @@ import commonHelper from './common.js'
|
|||
|
||||
const targets = [
|
||||
/^https?:\/\/(www\.|maps\.|search\.|)google\.com(\...|)(\/search\?..*|\/$)/,
|
||||
/^https?:\/\/libredirect\.onion/
|
||||
// /^https?:\/\/yandex\.com(\...|)(\/search\/..*|\/$)/,
|
||||
];
|
||||
let redirects = {
|
||||
|
@ -159,6 +160,7 @@ function isSearch(url) {
|
|||
}
|
||||
|
||||
function redirect(url) {
|
||||
console.log(url.href);
|
||||
let randomInstance;
|
||||
let path;
|
||||
if (frontend == 'searx') {
|
||||
|
|
|
@ -39,5 +39,16 @@
|
|||
"web_accessible_resources": [
|
||||
"assets/javascripts/helpers/youtube/piped-preferences.js",
|
||||
"assets/javascripts/helpers/youtube/pipedMaterial-preferences.js"
|
||||
]
|
||||
],
|
||||
"chrome_settings_overrides": {
|
||||
"homepage": "https://libredirect.onion",
|
||||
"search_provider": {
|
||||
"name": "LibRedirect",
|
||||
"keyword": "libredirect.onion",
|
||||
"search_url": "https://libredirect.onion/?q={searchTerms}",
|
||||
"favicon_url": "assets/images/libredirect-16.png",
|
||||
"encoding": "UTF-8",
|
||||
"is_default": true
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue