diff options
author | ManeraKai <manerakai@protonmail.com> | 2022-04-27 20:50:59 +0300 |
---|---|---|
committer | ManeraKai <manerakai@protonmail.com> | 2022-04-27 20:51:07 +0300 |
commit | 0e817629d33521bb550d31ce25ff01c38527edc5 (patch) | |
tree | ffbc4ff037cdb0107143cc1703be550d35f44141 /src/pages | |
parent | Merge branch 'master' of https://github.com/libredirect/libredirect (diff) | |
download | libredirect-0e817629d33521bb550d31ce25ff01c38527edc5.zip |
Removed startpage as it has an extension #222
Diffstat (limited to 'src/pages')
-rw-r--r-- | src/pages/options/search/search.html | 5 | ||||
-rw-r--r-- | src/pages/options/search/search.js | 11 |
2 files changed, 2 insertions, 14 deletions
diff --git a/src/pages/options/search/search.html b/src/pages/options/search/search.html index 01e8511e..cc1bb006 100644 --- a/src/pages/options/search/search.html +++ b/src/pages/options/search/search.html @@ -63,12 +63,11 @@ <input id="disable-search" type="checkbox"> </div> <div class="some-block option-block"> - <h4 id="frontend" data-localise="__MSG_frontend__">Frontend</h4> + <h4 data-localise="__MSG_frontend__">Frontend</h4> <select id="search-frontend"> - <option value="searx">SearX</option> <option value="searxng">SearXNG</option> + <option value="searx">SearX</option> <option value="whoogle">Whoogle</option> - <option value="startpage">Startpage</option> </select> </div> <div id="searx-whoogle"> diff --git a/src/pages/options/search/search.js b/src/pages/options/search/search.js index 14834309..197b17f4 100644 --- a/src/pages/options/search/search.js +++ b/src/pages/options/search/search.js @@ -12,35 +12,24 @@ let whoogleDivElement = document.getElementById("whoogle"); function changeFrontendsSettings(frontend) { let SearxWhoogleElement = document.getElementById("searx-whoogle"); - let frontendElement = document.getElementById("frontend"); if (frontend == 'searx') { - frontendElement.innerHTML = 'Frontend'; searxDivElement.style.display = 'block'; searxngDivElement.style.display = 'none'; whoogleDivElement.style.display = 'none'; SearxWhoogleElement.style.display = 'block'; } else if (frontend == 'searxng') { - frontendElement.innerHTML = 'Frontend'; searxDivElement.style.display = 'none'; searxngDivElement.style.display = 'block'; whoogleDivElement.style.display = 'none'; SearxWhoogleElement.style.display = 'block'; } else if (frontend == 'whoogle') { - frontendElement.innerHTML = 'Frontend'; searxDivElement.style.display = 'none'; searxngDivElement.style.display = 'none'; whoogleDivElement.style.display = 'block'; SearxWhoogleElement.style.display = 'block'; } - else if (frontend == 'startpage') { - frontendElement.innerHTML = `Frontend: <span style="color:red;">This is a centralized service</span>`; - searxDivElement.style.display = 'none'; - searxngDivElement.style.display = 'none'; - whoogleDivElement.style.display = 'none'; - SearxWhoogleElement.style.display = 'none'; - } } let searchFrontendElement = document.getElementById("search-frontend"); searchFrontendElement.addEventListener("change", |