[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor-browser/tor-browser-91.2.0esr-11.0-1] squash! Omnibox: Add DDG, Startpage, Disconnect, Youtube, Twitter; remove Amazon, eBay, bing
- To: tor-commits@xxxxxxxxxxxxxxxxxxxx, tbb-commits@xxxxxxxxxxxxxxxxxxxx
- Subject: [tor-commits] [tor-browser/tor-browser-91.2.0esr-11.0-1] squash! Omnibox: Add DDG, Startpage, Disconnect, Youtube, Twitter; remove Amazon, eBay, bing
- From: sysrqb@xxxxxxxxxxxxxx
- Date: Wed, 6 Oct 2021 13:32:12 +0000 (UTC)
- Delivered-to: archiver@xxxxxxxx
- Delivery-date: Wed, 06 Oct 2021 09:39:50 -0400
- List-archive: <http://lists.torproject.org/pipermail/tor-commits/>
- List-help: <mailto:tor-commits-request@lists.torproject.org?subject=help>
- List-id: "auto: code repository commits" <tor-commits.lists.torproject.org>
- List-post: <mailto:tor-commits@lists.torproject.org>
- List-subscribe: <https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits>, <mailto:tor-commits-request@lists.torproject.org?subject=subscribe>
- List-unsubscribe: <https://lists.torproject.org/cgi-bin/mailman/options/tor-commits>, <mailto:tor-commits-request@lists.torproject.org?subject=unsubscribe>
- Patch-author: Matthew Finkel <sysrqb@xxxxxxxxxxxxxx>
- Sender: "tor-commits" <tor-commits-bounces@xxxxxxxxxxxxxxxxxxxx>
commit 20b3201a603f8e891b413f5ba4528811b64e0916
Author: Matthew Finkel <sysrqb@xxxxxxxxxxxxxx>
Date: Fri Sep 3 17:40:27 2021 +0000
squash! Omnibox: Add DDG, Startpage, Disconnect, Youtube, Twitter; remove Amazon, eBay, bing
Bug 40438: Add Blockchair as a search engine
---
.../search/extensions/blockchair-onion/favicon.png | Bin 0 -> 947 bytes
.../extensions/blockchair-onion/manifest.json | 26 +++++++++++++++++++++
.../search/extensions/blockchair/favicon.png | Bin 0 -> 947 bytes
.../search/extensions/blockchair/manifest.json | 26 +++++++++++++++++++++
toolkit/components/search/SearchService.jsm | 12 ++++++----
5 files changed, 59 insertions(+), 5 deletions(-)
diff --git a/browser/components/search/extensions/blockchair-onion/favicon.png b/browser/components/search/extensions/blockchair-onion/favicon.png
new file mode 100644
index 000000000000..1d1ccabdbc94
Binary files /dev/null and b/browser/components/search/extensions/blockchair-onion/favicon.png differ
diff --git a/browser/components/search/extensions/blockchair-onion/manifest.json b/browser/components/search/extensions/blockchair-onion/manifest.json
new file mode 100644
index 000000000000..e7d15ee50247
--- /dev/null
+++ b/browser/components/search/extensions/blockchair-onion/manifest.json
@@ -0,0 +1,26 @@
+{
+ "name": "BlockchairOnion",
+ "description": "Blockchair Onion",
+ "manifest_version": 2,
+ "version": "1.0",
+ "applications": {
+ "gecko": {
+ "id": "blockchair-onion@xxxxxxxxxxxxxxxxxx"
+ }
+ },
+ "hidden": true,
+ "icons": {
+ "16": "favicon.png"
+ },
+ "web_accessible_resources": [
+ "favicon.png"
+ ],
+ "chrome_settings_overrides": {
+ "search_provider": {
+ "name": "BlockchairOnion",
+ "search_url": "http://blkchairbknpn73cfjhevhla7rkp4ed5gg2knctvv7it4lioy22defid.onion/search",
+ "search_form": "http://blkchairbknpn73cfjhevhla7rkp4ed5gg2knctvv7it4lioy22defid.onion/search/?q={searchTerms}",
+ "search_url_post_params": "q={searchTerms}"
+ }
+ }
+}
diff --git a/browser/components/search/extensions/blockchair/favicon.png b/browser/components/search/extensions/blockchair/favicon.png
new file mode 100644
index 000000000000..1d1ccabdbc94
Binary files /dev/null and b/browser/components/search/extensions/blockchair/favicon.png differ
diff --git a/browser/components/search/extensions/blockchair/manifest.json b/browser/components/search/extensions/blockchair/manifest.json
new file mode 100644
index 000000000000..27f320f80b16
--- /dev/null
+++ b/browser/components/search/extensions/blockchair/manifest.json
@@ -0,0 +1,26 @@
+{
+ "name": "Blockchair",
+ "description": "Blockchair",
+ "manifest_version": 2,
+ "version": "1.0",
+ "applications": {
+ "gecko": {
+ "id": "blockchair@xxxxxxxxxxxxxxxxxx"
+ }
+ },
+ "hidden": true,
+ "icons": {
+ "16": "favicon.png"
+ },
+ "web_accessible_resources": [
+ "favicon.png"
+ ],
+ "chrome_settings_overrides": {
+ "search_provider": {
+ "name": "Blockchair",
+ "search_url": "https://blockchair.com/search",
+ "search_form": "https://blockchair.com/search/?q={searchTerms}",
+ "search_url_post_params": "q={searchTerms}"
+ }
+ }
+}
diff --git a/toolkit/components/search/SearchService.jsm b/toolkit/components/search/SearchService.jsm
index d111690894b0..d46e1531c133 100644
--- a/toolkit/components/search/SearchService.jsm
+++ b/toolkit/components/search/SearchService.jsm
@@ -1053,11 +1053,13 @@ SearchService.prototype = {
{ webExtension: { id: "ddg@xxxxxxxxxxxxxxxxxx" }, orderHint: 100 },
{ webExtension: { id: "youtube@xxxxxxxxxxxxxxxxxx" }, orderHint: 90 },
{ webExtension: { id: "google@xxxxxxxxxxxxxxxxxx" }, orderHint: 80 },
- { webExtension: { id: "ddg-onion@xxxxxxxxxxxxxxxxxx" }, orderHint: 70 },
- { webExtension: { id: "startpage@xxxxxxxxxxxxxxxxxx" }, orderHint: 60 },
- { webExtension: { id: "twitter@xxxxxxxxxxxxxxxxxx" }, orderHint: 50 },
- { webExtension: { id: "wikipedia@xxxxxxxxxxxxxxxxxx" }, orderHint: 40 },
- { webExtension: { id: "yahoo@xxxxxxxxxxxxxxxxxx" }, orderHint: 30 },
+ { webExtension: { id: "blockchair@xxxxxxxxxxxxxxxxxx" }, orderHint: 70 },
+ { webExtension: { id: "ddg-onion@xxxxxxxxxxxxxxxxxx" }, orderHint: 60 },
+ { webExtension: { id: "blockchair-onion@xxxxxxxxxxxxxxxxxx" }, orderHint: 50 },
+ { webExtension: { id: "startpage@xxxxxxxxxxxxxxxxxx" }, orderHint: 40 },
+ { webExtension: { id: "twitter@xxxxxxxxxxxxxxxxxx" }, orderHint: 30 },
+ { webExtension: { id: "wikipedia@xxxxxxxxxxxxxxxxxx" }, orderHint: 20 },
+ { webExtension: { id: "yahoo@xxxxxxxxxxxxxxxxxx" }, orderHint: 10 },
];
for (let e of engines) {
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits