summaryrefslogtreecommitdiffstats
path: root/browser/components/search/extensions/amazondotcn
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 19:33:14 +0000
commit36d22d82aa202bb199967e9512281e9a53db42c9 (patch)
tree105e8c98ddea1c1e4784a60a5a6410fa416be2de /browser/components/search/extensions/amazondotcn
parentInitial commit. (diff)
downloadfirefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.tar.xz
firefox-esr-36d22d82aa202bb199967e9512281e9a53db42c9.zip
Adding upstream version 115.7.0esr.upstream/115.7.0esrupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--browser/components/search/extensions/amazondotcn/_locales/default/messages.json8
-rw-r--r--browser/components/search/extensions/amazondotcn/_locales/mozillaonline/messages.json8
-rw-r--r--browser/components/search/extensions/amazondotcn/favicon.icobin0 -> 1407 bytes
-rw-r--r--browser/components/search/extensions/amazondotcn/manifest.json26
4 files changed, 42 insertions, 0 deletions
diff --git a/browser/components/search/extensions/amazondotcn/_locales/default/messages.json b/browser/components/search/extensions/amazondotcn/_locales/default/messages.json
new file mode 100644
index 0000000000..9402028a43
--- /dev/null
+++ b/browser/components/search/extensions/amazondotcn/_locales/default/messages.json
@@ -0,0 +1,8 @@
+{
+ "searchUrl": {
+ "message": "https://www.amazon.cn/mn/searchApp"
+ },
+ "searchUrlGetParams": {
+ "message": "ix=sunray&pageletid=headsearch&searchType=&Go.x=0&Go.y=0&bestSaleNum=0&keywords={searchTerms}"
+ }
+}
diff --git a/browser/components/search/extensions/amazondotcn/_locales/mozillaonline/messages.json b/browser/components/search/extensions/amazondotcn/_locales/mozillaonline/messages.json
new file mode 100644
index 0000000000..888cc1d5a7
--- /dev/null
+++ b/browser/components/search/extensions/amazondotcn/_locales/mozillaonline/messages.json
@@ -0,0 +1,8 @@
+{
+ "searchUrl": {
+ "message": "https://www.amazon.cn/gp/search"
+ },
+ "searchUrlGetParams": {
+ "message": "ie=UTF8&camp=536&creative=3200&index=aps&linkCode=ur2&tag=mozilla&keywords={searchTerms}"
+ }
+}
diff --git a/browser/components/search/extensions/amazondotcn/favicon.ico b/browser/components/search/extensions/amazondotcn/favicon.ico
new file mode 100644
index 0000000000..1c39eaf8fe
--- /dev/null
+++ b/browser/components/search/extensions/amazondotcn/favicon.ico
Binary files differ
diff --git a/browser/components/search/extensions/amazondotcn/manifest.json b/browser/components/search/extensions/amazondotcn/manifest.json
new file mode 100644
index 0000000000..4cff45292e
--- /dev/null
+++ b/browser/components/search/extensions/amazondotcn/manifest.json
@@ -0,0 +1,26 @@
+{
+ "name": "亚马逊",
+ "description": "亚马逊搜索",
+ "manifest_version": 2,
+ "version": "1.2",
+ "browser_specific_settings": {
+ "gecko": {
+ "id": "amazondotcn@search.mozilla.org"
+ }
+ },
+ "hidden": true,
+ "default_locale": "default",
+ "icons": {
+ "16": "favicon.ico"
+ },
+ "web_accessible_resources": ["favicon.ico"],
+ "chrome_settings_overrides": {
+ "search_provider": {
+ "keyword": "@amazon",
+ "name": "亚马逊",
+ "search_url": "__MSG_searchUrl__",
+ "search_form": "https://www.amazon.cn/",
+ "search_url_get_params": "__MSG_searchUrlGetParams__"
+ }
+ }
+}