Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Yandex search engine #1467

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions resources/resources.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@
<file>searchEngines/w3c-markup.xml</file>
<file>searchEngines/wikipedia.xml</file>
<file>searchEngines/yahoo.xml</file>
<file>searchEngines/yandex.xml</file>
<file>searchEngines/youtube.xml</file>
</qresource>
</RCC>
10 changes: 10 additions & 0 deletions resources/searchEngines/yandex.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<Shortcut>ya</Shortcut>
<ShortName>Yandex</ShortName>
<Description>Search with Yandex</Description>
<InputEncoding>UTF-8</InputEncoding>
<Image width="16" height="16" type="image/png">data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAAEnRFWHRfcV9pY29PcmlnRGVwdGgAMzLV4rjsAAAB9ElEQVQ4jY2Sz2sTQRTHP9lsAwn+OGgxASm5hCB4qehNAoIHD57Ug5hTLJQcxIMFD/0P6iWQg0IkF6EgtKUhEAh6FTbpTVpEg0ZWLaWKNmtYNpPdmfUgE7ZVaL7wgeF9mMebx8SAWeAMkOD4/AR2jxYveJ73JZwirVbrEXDuaINLSqlwGsbj8X6hUCgASX05BlyRUm5N2vmC2PpTYtsW/P4FqZOoJ5sT3e/3N3K53BJgAxhAXCmFhrXnsPUGeesB6noRBi5Rn81mb1er1RtARje9KoQINepOIfSbL0MhROi3N8Pw5uUw6oUQ4WAw+JpOp68BCQMwpZRoYu8/o2ZSSClRriDcc4h6KSWJROJ8o9G4D8wZgOn7Php5Kg3tV3/Prgffh0S9Jp/P3wXmTMB0HGeyJPFwibMLC8jtd8RGI8KBS9TrKKUATAOIe56H5mB+nr3lZeh0GCnFCIh6jWVZa8A3Uz9Bx3AcZioV9hcXkZkMp3d2iHoA13V3y+XyBvDJAMwgCNDEV1YYJpM4xSJCKYZA1AdBQL1ef+Y4zltAHJrA6Hbxm03cSgUJqCBAwaEJer3e61qt1gY+6p94z7Ks1X+29J94nndQKpUe27a9DgwATMAbDoc/UqnU7HENGo3GC9u2u/qynuAikAdOTDHEB6ATLfwB5hyd+SwLsg8AAAAASUVORK5CYII=</Image>
<Url rel="results" type="text/html" method="GET" enctype="application/x-www-form-urlencoded" template="https://yandex.fr/search/?text={searchTerms}&amp;sourceid=otter"/>
<Url rel="suggestions" type="application/x-suggestions+json" method="GET" enctype="application/x-www-form-urlencoded" template="https://yandex.fr/search/?text={searchTerms}"/>
</OpenSearchDescription>
2 changes: 1 addition & 1 deletion src/core/SettingsManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ void SettingsManager::createInstance(const QString &path)
registerOption(Search_EnableFindInPageAsYouTypeOption, BooleanType, true);
registerOption(Search_EnableFindInPageHighlightAllOption, BooleanType, false);
registerOption(Search_ReuseLastQuickFindQueryOption, BooleanType, false);
registerOption(Search_SearchEnginesOrderOption, ListType, QStringList({QLatin1String("duckduckgo"), QLatin1String("wikipedia"), QLatin1String("startpage"), QLatin1String("google"), QLatin1String("yahoo"), QLatin1String("bing"), QLatin1String("youtube")}));
registerOption(Search_SearchEnginesOrderOption, ListType, QStringList({QLatin1String("duckduckgo"), QLatin1String("yandex"), QLatin1String("wikipedia"), QLatin1String("startpage"), QLatin1String("google"), QLatin1String("yahoo"), QLatin1String("bing"), QLatin1String("youtube")}));
registerOption(Search_SearchEnginesSuggestionsOption, BooleanType, false);
registerOption(Security_AllowMixedContentOption, BooleanType, false);
registerOption(Security_CiphersOption, ListType, QStringList(QLatin1String("default")));
Expand Down