From 5934d96e8d0969fd2dc365110a8a3615d06beb43 Mon Sep 17 00:00:00 2001 From: Javojav Date: Mon, 6 May 2019 15:20:28 +0200 Subject: [PATCH] Add files --- README.md | 3 +++ icons/icon.png | Bin 0 -> 17524 bytes manifest.json | 24 ++++++++++++++++++ popup/search.html | 16 ++++++++++++ popup/search.js | 62 ++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 105 insertions(+) create mode 100644 README.md create mode 100644 icons/icon.png create mode 100644 manifest.json create mode 100644 popup/search.html create mode 100644 popup/search.js diff --git a/README.md b/README.md new file mode 100644 index 0000000..8ede447 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# Multi engine Search + +This Firefox extension allows you to use multiple of your installed search engines at once. diff --git a/icons/icon.png b/icons/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..8a9641dcb55df57ca8e09249e2b890d91b958e90 GIT binary patch literal 17524 zcmbTec{r3`{69Q1#!i+(_R`q0B|BLPG1(=`HX<>WY>8|$D21{NQi#%2mMmpoXOyJ~ z8A=f|B?&Qun8BF)xqZIB?{i(xAJ0EO7uRj>^FHUi_jAtcoHOZ;_E!8n5-Rm7hI$XIb#&@+$bb-RGN&BWk}3rCPR#Q)7N>BvXh9XJ9#_|ft6eXR{9-A>17 zlpL_IO?3{og&_EcZ9`R3sj7MWZ*77Wxatoagf|i4X3nT#kw25ydI{eozN%xcv4xbi zgknRJ3yABTHIN7Mn2wt)dW*ZXHLS(EL>X5MsTQ zDeuygmVdX8s(ItR9Qa!SYM9G`10F1Z?;iRHycZ7f(4Z*CL7 zegm-2`!F7NxRZ5LxUqQk3^T&5ZI3MvXa_Wg{Q&d;e2Z-hdIQn)HEc93W${eP--Iac z2O+%#FPn3M>hL6fCWpQxLz(753Hsu2qx_|h=t0=^t^kLDswXK(?_)5|KA|g(?f5G&VAT1(jH5q9UUn-`wO$kPO!KVjf#Pr|F0zDh(aVQtVm<@vqYh6_YxVj;FJ zM?pNTbznsNk1}sIJ|aUDZSaDSG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manifest.json b/manifest.json new file mode 100644 index 0000000..d20d02c --- /dev/null +++ b/manifest.json @@ -0,0 +1,24 @@ +{ + + "manifest_version": 2, + "name": "Multi engine search", + "version": "1.0", + + "description": "Search on Multiple search engines.", + "homepage_url": "https://github.com/Javojav/Multi-engine-search", + + "icons": { + "48": "icons/icon.png" + }, + + "permissions": [ + "search" + ], + + "browser_action": { + "default_icon": "icons/icon.png", + "default_title": "Multi engine search", + "default_popup": "popup/search.html" + } + +} diff --git a/popup/search.html b/popup/search.html new file mode 100644 index 0000000..92b30bc --- /dev/null +++ b/popup/search.html @@ -0,0 +1,16 @@ + + + + + + + + +
+ +
+ +
+
+ + diff --git a/popup/search.js b/popup/search.js new file mode 100644 index 0000000..e33b348 --- /dev/null +++ b/popup/search.js @@ -0,0 +1,62 @@ +browser.search.get().then(installedEngines); + +let engineselection = []; + +function search(tab) { + for (selected of engineselection) { + browser.search.search({ + query: document.getElementById("searchbox").value, + engine: selected, + tabId: tab.id + }); + } +} + +browser.browserAction.onClicked.addListener(search); + +function saveselection() { + try { + localStorage.removeItem('defaultengines'); + } catch {} + localStorage.setItem('defaultengines', engineselection); +} + +function installedEngines(engines) { + for (engine of engines) { + let checkbox = document.createElement("INPUT"); + checkbox.type = "checkbox"; + checkbox.setAttribute('value', 'engine ' + engine.name); + try { + let defaultengines = localStorage.getItem('defaultengines').split(","); + for (eng of defaultengines) { + if (engine.name == eng) checkbox.checked = true; + } + } + catch {} + + let label = document.createElement('label'); + label.appendChild(document.createTextNode(engine.name)); + document.getElementById("boxes").appendChild(checkbox); + document.getElementById("boxes").appendChild(label); + + let br = document.createElement("BR"); + document.getElementById("boxes").appendChild(br) + } +} + +document.addEventListener("click", (e) => { + engineselection = []; + for (engine of document.getElementsByTagName('INPUT')) { + if (engine.value.includes("engine") && engine.checked) engineselection.push(engine.value.slice(7)); + } + if (e.target.classList.contains("search")) { + browser.tabs.query({active: true, currentWindow: true}) + .then(search); + } else if (e.target.classList.contains("default")) { + browser.tabs.query({active: true, currentWindow: true}) + .then(saveselection); + } else if (e.target.classList.contains("image")) { + browser.tabs.query({active: true, currentWindow: true}) + .then(searchimage); + } +});