Added LibRedirect as a Default Search Engine #82

This commit is contained in:
ManeraKai 2022-03-07 22:24:57 +03:00
parent 926ed4bb5c
commit d22aed5057
No known key found for this signature in database
GPG Key ID: 5ABC31FFD562E337
4 changed files with 7114 additions and 1 deletions

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

View File

@ -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') {

View File

@ -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
}
}
}