mirror of
https://github.com/Alex313031/thorium.git
synced 2025-01-10 03:47:44 -03:00
Add yandex search engine
This commit is contained in:
parent
cb3b3af92c
commit
8c1b7d5939
1 changed files with 68 additions and 60 deletions
|
@ -35,10 +35,12 @@ const PrepopulatedEngine* const engines_default[] = {
|
|||
&duckduckgo,
|
||||
&ecosia,
|
||||
&ask,
|
||||
&yandex_com,
|
||||
};
|
||||
|
||||
// Note, the below entries are sorted by country code, not the name in comment.
|
||||
// Engine selection by country ------------------------------------------------
|
||||
// clang-format off
|
||||
// United Arab Emirates
|
||||
const PrepopulatedEngine* const engines_AE[] = {
|
||||
&google,
|
||||
|
@ -90,6 +92,7 @@ const PrepopulatedEngine* const engines_BA[] = {
|
|||
&bing,
|
||||
&yahoo,
|
||||
&duckduckgo,
|
||||
&yandex_com,
|
||||
};
|
||||
|
||||
// Belgium
|
||||
|
@ -116,7 +119,7 @@ const PrepopulatedEngine* const engines_BH[] = {
|
|||
&bing,
|
||||
&yahoo,
|
||||
&duckduckgo,
|
||||
&ecosia,
|
||||
&yandex_com,
|
||||
};
|
||||
|
||||
// Burundi
|
||||
|
@ -170,7 +173,7 @@ const PrepopulatedEngine* const engines_BZ[] = {
|
|||
&bing,
|
||||
&yahoo,
|
||||
&duckduckgo,
|
||||
&ask,
|
||||
&ecosia,
|
||||
};
|
||||
|
||||
// Canada
|
||||
|
@ -195,17 +198,17 @@ const PrepopulatedEngine* const engines_CH[] = {
|
|||
const PrepopulatedEngine* const engines_CL[] = {
|
||||
&google,
|
||||
&bing,
|
||||
&yahoo_es,
|
||||
&yahoo_cl,
|
||||
&duckduckgo,
|
||||
&ecosia,
|
||||
};
|
||||
|
||||
// China
|
||||
const PrepopulatedEngine* const engines_CN[] = {
|
||||
&baidu,
|
||||
&sogou,
|
||||
&google,
|
||||
&baidu,
|
||||
&bing,
|
||||
&google,
|
||||
&so_360,
|
||||
};
|
||||
|
||||
|
@ -213,7 +216,7 @@ const PrepopulatedEngine* const engines_CN[] = {
|
|||
const PrepopulatedEngine* const engines_CO[] = {
|
||||
&google,
|
||||
&bing,
|
||||
&yahoo_es,
|
||||
&yahoo_co,
|
||||
&ecosia,
|
||||
&duckduckgo,
|
||||
};
|
||||
|
@ -240,8 +243,8 @@ const PrepopulatedEngine* const engines_CZ[] = {
|
|||
const PrepopulatedEngine* const engines_DE[] = {
|
||||
&google,
|
||||
&bing,
|
||||
&duckduckgo,
|
||||
&ecosia,
|
||||
&duckduckgo,
|
||||
&yahoo_de,
|
||||
};
|
||||
|
||||
|
@ -266,9 +269,9 @@ const PrepopulatedEngine* const engines_DO[] = {
|
|||
// Algeria
|
||||
const PrepopulatedEngine* const engines_DZ[] = {
|
||||
&google,
|
||||
&yahoo_uk,
|
||||
&bing,
|
||||
&yandex_ru,
|
||||
&yahoo_fr,
|
||||
&yandex_com,
|
||||
&duckduckgo,
|
||||
};
|
||||
|
||||
|
@ -277,8 +280,8 @@ const PrepopulatedEngine* const engines_EC[] = {
|
|||
&google,
|
||||
&bing,
|
||||
&yahoo,
|
||||
&duckduckgo,
|
||||
&ecosia,
|
||||
&duckduckgo,
|
||||
};
|
||||
|
||||
// Estonia
|
||||
|
@ -286,15 +289,15 @@ const PrepopulatedEngine* const engines_EE[] = {
|
|||
&google,
|
||||
&bing,
|
||||
&yandex_ru,
|
||||
&duckduckgo,
|
||||
&yahoo,
|
||||
&mail_ru,
|
||||
};
|
||||
|
||||
// Egypt
|
||||
const PrepopulatedEngine* const engines_EG[] = {
|
||||
&google,
|
||||
&yahoo,
|
||||
&bing,
|
||||
&yahoo,
|
||||
&yandex_com,
|
||||
&duckduckgo,
|
||||
};
|
||||
|
@ -350,7 +353,7 @@ const PrepopulatedEngine* const engines_GR[] = {
|
|||
&bing,
|
||||
&yahoo,
|
||||
&duckduckgo,
|
||||
&yandex_com,
|
||||
&yandex_ru,
|
||||
};
|
||||
|
||||
// Guatemala
|
||||
|
@ -386,7 +389,7 @@ const PrepopulatedEngine* const engines_HR[] = {
|
|||
&bing,
|
||||
&yahoo,
|
||||
&duckduckgo,
|
||||
&yandex_ru,
|
||||
&ecosia,
|
||||
};
|
||||
|
||||
// Hungary
|
||||
|
@ -395,7 +398,7 @@ const PrepopulatedEngine* const engines_HU[] = {
|
|||
&bing,
|
||||
&yahoo,
|
||||
&duckduckgo,
|
||||
&ecosia,
|
||||
&yandex_com,
|
||||
};
|
||||
|
||||
// Indonesia
|
||||
|
@ -403,15 +406,15 @@ const PrepopulatedEngine* const engines_ID[] = {
|
|||
&google,
|
||||
&yahoo_id,
|
||||
&bing,
|
||||
&duckduckgo,
|
||||
&yandex_com,
|
||||
&duckduckgo,
|
||||
};
|
||||
|
||||
// Ireland
|
||||
const PrepopulatedEngine* const engines_IE[] = {
|
||||
&google,
|
||||
&bing,
|
||||
&yahoo,
|
||||
&yahoo_uk,
|
||||
&duckduckgo,
|
||||
&ecosia,
|
||||
};
|
||||
|
@ -431,15 +434,15 @@ const PrepopulatedEngine* const engines_IN[] = {
|
|||
&bing,
|
||||
&yahoo_in,
|
||||
&duckduckgo,
|
||||
&ecosia,
|
||||
&info_com,
|
||||
};
|
||||
|
||||
// Iraq
|
||||
const PrepopulatedEngine* const engines_IQ[] = {
|
||||
&google,
|
||||
&bing,
|
||||
&yahoo_uk,
|
||||
&yandex_com,
|
||||
&yahoo,
|
||||
&yandex_tr,
|
||||
&duckduckgo,
|
||||
};
|
||||
|
||||
|
@ -449,15 +452,15 @@ const PrepopulatedEngine* const engines_IR[] = {
|
|||
&bing,
|
||||
&yahoo,
|
||||
&ask,
|
||||
&naver,
|
||||
&duckduckgo,
|
||||
};
|
||||
|
||||
// Iceland
|
||||
const PrepopulatedEngine* const engines_IS[] = {
|
||||
&google,
|
||||
&bing,
|
||||
&yahoo,
|
||||
&duckduckgo,
|
||||
&yahoo,
|
||||
&ecosia,
|
||||
};
|
||||
|
||||
|
@ -493,8 +496,8 @@ const PrepopulatedEngine* const engines_JP[] = {
|
|||
&google,
|
||||
&yahoo_jp,
|
||||
&bing,
|
||||
&baidu,
|
||||
&duckduckgo,
|
||||
&baidu,
|
||||
};
|
||||
|
||||
// Kenya
|
||||
|
@ -510,8 +513,8 @@ const PrepopulatedEngine* const engines_KE[] = {
|
|||
const PrepopulatedEngine* const engines_KR[] = {
|
||||
&google,
|
||||
&naver,
|
||||
&bing,
|
||||
&daum,
|
||||
&bing,
|
||||
&yahoo,
|
||||
};
|
||||
|
||||
|
@ -530,7 +533,7 @@ const PrepopulatedEngine* const engines_KZ[] = {
|
|||
&yandex_kz,
|
||||
&mail_ru,
|
||||
&bing,
|
||||
&yahoo,
|
||||
&duckduckgo,
|
||||
};
|
||||
|
||||
// Lebanon
|
||||
|
@ -539,7 +542,7 @@ const PrepopulatedEngine* const engines_LB[] = {
|
|||
&bing,
|
||||
&yahoo,
|
||||
&duckduckgo,
|
||||
&yandex_ru,
|
||||
&ecosia,
|
||||
};
|
||||
|
||||
// Liechtenstein
|
||||
|
@ -556,8 +559,8 @@ const PrepopulatedEngine* const engines_LT[] = {
|
|||
&google,
|
||||
&bing,
|
||||
&yahoo,
|
||||
&yandex_ru,
|
||||
&duckduckgo,
|
||||
&yandex_ru,
|
||||
};
|
||||
|
||||
// Luxembourg
|
||||
|
@ -590,8 +593,8 @@ const PrepopulatedEngine* const engines_LY[] = {
|
|||
// Morocco
|
||||
const PrepopulatedEngine* const engines_MA[] = {
|
||||
&google,
|
||||
&yahoo_fr,
|
||||
&bing,
|
||||
&yahoo_fr,
|
||||
&yandex_com,
|
||||
&duckduckgo,
|
||||
};
|
||||
|
@ -600,17 +603,17 @@ const PrepopulatedEngine* const engines_MA[] = {
|
|||
const PrepopulatedEngine* const engines_MC[] = {
|
||||
&google,
|
||||
&bing,
|
||||
&yahoo,
|
||||
&duckduckgo,
|
||||
&qwant,
|
||||
&yahoo_fr,
|
||||
&ecosia,
|
||||
};
|
||||
|
||||
// Moldova
|
||||
const PrepopulatedEngine* const engines_MD[] = {
|
||||
&google,
|
||||
&yandex_ru,
|
||||
&mail_ru,
|
||||
&bing,
|
||||
&mail_ru,
|
||||
&yahoo,
|
||||
};
|
||||
|
||||
|
@ -629,7 +632,7 @@ const PrepopulatedEngine* const engines_MK[] = {
|
|||
&bing,
|
||||
&yahoo,
|
||||
&duckduckgo,
|
||||
&baidu,
|
||||
&yandex_ru,
|
||||
};
|
||||
|
||||
// Mexico
|
||||
|
@ -647,7 +650,7 @@ const PrepopulatedEngine* const engines_MY[] = {
|
|||
&bing,
|
||||
&yahoo_my,
|
||||
&duckduckgo,
|
||||
&baidu,
|
||||
&ecosia,
|
||||
};
|
||||
|
||||
// Nicaragua
|
||||
|
@ -663,8 +666,8 @@ const PrepopulatedEngine* const engines_NI[] = {
|
|||
const PrepopulatedEngine* const engines_NL[] = {
|
||||
&google,
|
||||
&bing,
|
||||
&duckduckgo,
|
||||
&yahoo_nl,
|
||||
&duckduckgo,
|
||||
&ecosia,
|
||||
};
|
||||
|
||||
|
@ -692,14 +695,14 @@ const PrepopulatedEngine* const engines_OM[] = {
|
|||
&bing,
|
||||
&yahoo,
|
||||
&duckduckgo,
|
||||
&ask,
|
||||
&petal_search,
|
||||
};
|
||||
|
||||
// Panama
|
||||
const PrepopulatedEngine* const engines_PA[] = {
|
||||
&google,
|
||||
&bing,
|
||||
&yahoo,
|
||||
&yahoo_es,
|
||||
&duckduckgo,
|
||||
&ecosia,
|
||||
};
|
||||
|
@ -708,7 +711,7 @@ const PrepopulatedEngine* const engines_PA[] = {
|
|||
const PrepopulatedEngine* const engines_PE[] = {
|
||||
&google,
|
||||
&bing,
|
||||
&yahoo_es,
|
||||
&yahoo_pe,
|
||||
&ecosia,
|
||||
&duckduckgo,
|
||||
};
|
||||
|
@ -725,8 +728,8 @@ const PrepopulatedEngine* const engines_PH[] = {
|
|||
// Pakistan
|
||||
const PrepopulatedEngine* const engines_PK[] = {
|
||||
&google,
|
||||
&yahoo,
|
||||
&bing,
|
||||
&yahoo,
|
||||
&duckduckgo,
|
||||
&yandex_com,
|
||||
};
|
||||
|
@ -737,6 +740,7 @@ const PrepopulatedEngine* const engines_PL[] = {
|
|||
&bing,
|
||||
&yahoo,
|
||||
&duckduckgo,
|
||||
&yandex_ru,
|
||||
};
|
||||
|
||||
// Puerto Rico
|
||||
|
@ -761,7 +765,7 @@ const PrepopulatedEngine* const engines_PT[] = {
|
|||
const PrepopulatedEngine* const engines_PY[] = {
|
||||
&google,
|
||||
&bing,
|
||||
&yahoo,
|
||||
&yahoo_es,
|
||||
&duckduckgo,
|
||||
&ecosia,
|
||||
};
|
||||
|
@ -772,7 +776,7 @@ const PrepopulatedEngine* const engines_QA[] = {
|
|||
&bing,
|
||||
&yahoo,
|
||||
&duckduckgo,
|
||||
&ecosia,
|
||||
&yandex_tr,
|
||||
};
|
||||
|
||||
// Romania
|
||||
|
@ -781,7 +785,7 @@ const PrepopulatedEngine* const engines_RO[] = {
|
|||
&bing,
|
||||
&yahoo,
|
||||
&duckduckgo,
|
||||
&yandex_ru,
|
||||
&yandex_tr,
|
||||
};
|
||||
|
||||
// Serbia
|
||||
|
@ -833,9 +837,9 @@ const PrepopulatedEngine* const engines_SE[] = {
|
|||
const PrepopulatedEngine* const engines_SG[] = {
|
||||
&google,
|
||||
&bing,
|
||||
&yahoo,
|
||||
&baidu,
|
||||
&yahoo_sg,
|
||||
&duckduckgo,
|
||||
&baidu,
|
||||
};
|
||||
|
||||
// Slovenia
|
||||
|
@ -844,22 +848,23 @@ const PrepopulatedEngine* const engines_SI[] = {
|
|||
&bing,
|
||||
&duckduckgo,
|
||||
&yahoo,
|
||||
&yandex_com,
|
||||
};
|
||||
|
||||
// Slovakia
|
||||
const PrepopulatedEngine* const engines_SK[] = {
|
||||
&google,
|
||||
&bing,
|
||||
&yahoo,
|
||||
&duckduckgo,
|
||||
&seznam_cz,
|
||||
&yahoo,
|
||||
&yandex_com,
|
||||
};
|
||||
|
||||
// El Salvador
|
||||
const PrepopulatedEngine* const engines_SV[] = {
|
||||
&google,
|
||||
&bing,
|
||||
&yahoo,
|
||||
&yahoo_es,
|
||||
&duckduckgo,
|
||||
&ecosia,
|
||||
};
|
||||
|
@ -869,7 +874,7 @@ const PrepopulatedEngine* const engines_SY[] = {
|
|||
&google,
|
||||
&bing,
|
||||
&yahoo,
|
||||
&yandex_ru,
|
||||
&yandex_com,
|
||||
&duckduckgo,
|
||||
};
|
||||
|
||||
|
@ -877,18 +882,18 @@ const PrepopulatedEngine* const engines_SY[] = {
|
|||
const PrepopulatedEngine* const engines_TH[] = {
|
||||
&google,
|
||||
&bing,
|
||||
&yahoo,
|
||||
&duckduckgo,
|
||||
&baidu,
|
||||
&yahoo_th,
|
||||
&yandex_ru,
|
||||
&mail_ru,
|
||||
};
|
||||
|
||||
// Tunisia
|
||||
const PrepopulatedEngine* const engines_TN[] = {
|
||||
&google,
|
||||
&yahoo_fr,
|
||||
&bing,
|
||||
&yahoo_fr,
|
||||
&duckduckgo,
|
||||
&yandex_ru,
|
||||
&yandex_com,
|
||||
};
|
||||
|
||||
// Turkey
|
||||
|
@ -915,7 +920,7 @@ const PrepopulatedEngine* const engines_TW[] = {
|
|||
&yahoo_tw,
|
||||
&bing,
|
||||
&baidu,
|
||||
&ecosia,
|
||||
&duckduckgo,
|
||||
};
|
||||
|
||||
// Tanzania
|
||||
|
@ -924,7 +929,7 @@ const PrepopulatedEngine* const engines_TZ[] = {
|
|||
&bing,
|
||||
&yahoo,
|
||||
&duckduckgo,
|
||||
&ecosia,
|
||||
&baidu,
|
||||
};
|
||||
|
||||
// Ukraine
|
||||
|
@ -944,13 +949,14 @@ const PrepopulatedEngine* const engines_US[] = {
|
|||
&duckduckgo,
|
||||
&ecosia,
|
||||
&ask,
|
||||
&yandex_com,
|
||||
};
|
||||
|
||||
// Uruguay
|
||||
const PrepopulatedEngine* const engines_UY[] = {
|
||||
&google,
|
||||
&bing,
|
||||
&yahoo,
|
||||
&yahoo_es,
|
||||
&duckduckgo,
|
||||
&ecosia,
|
||||
};
|
||||
|
@ -958,8 +964,8 @@ const PrepopulatedEngine* const engines_UY[] = {
|
|||
// Venezuela
|
||||
const PrepopulatedEngine* const engines_VE[] = {
|
||||
&google,
|
||||
&yahoo_ve,
|
||||
&bing,
|
||||
&yahoo_es,
|
||||
&duckduckgo,
|
||||
&ecosia,
|
||||
};
|
||||
|
@ -968,9 +974,9 @@ const PrepopulatedEngine* const engines_VE[] = {
|
|||
const PrepopulatedEngine* const engines_VN[] = {
|
||||
&google,
|
||||
&coccoc,
|
||||
&bing,
|
||||
&yahoo,
|
||||
&baidu,
|
||||
&bing,
|
||||
&yandex_ru,
|
||||
};
|
||||
|
||||
// Yemen
|
||||
|
@ -978,7 +984,7 @@ const PrepopulatedEngine* const engines_YE[] = {
|
|||
&google,
|
||||
&bing,
|
||||
&yahoo,
|
||||
&yandex_ru,
|
||||
&yandex_com,
|
||||
&duckduckgo,
|
||||
};
|
||||
|
||||
|
@ -997,8 +1003,10 @@ const PrepopulatedEngine* const engines_ZW[] = {
|
|||
&bing,
|
||||
&yahoo,
|
||||
&duckduckgo,
|
||||
&ask,
|
||||
&ecosia,
|
||||
};
|
||||
|
||||
// clang-format on
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
std::vector<std::unique_ptr<TemplateURLData>> GetPrepopulationSetFromCountryID(
|
||||
|
|
Loading…
Reference in a new issue