Skip to content

Commit

Permalink
changement searchEngine + setEngines
Browse files Browse the repository at this point in the history
  • Loading branch information
eyssette committed Nov 10, 2023
1 parent ff8c4bb commit b1fdcf8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions script.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// On peut définir ici le moteur de recherche Searx que l'on va utiliser
const searchEngine = "https://zotop.zaclys.com/search?q=";
const searchEngine = "https://paulgo.io/search?q=";
/* const searchEngine = "https://zotop.zaclys.com/search?q="; */

// On peut désactiver la recherche sur certains moteurs
const disabledEngines = "&disabled_engines=brave" // Brave renvoie souvent des résultats trop larges
// On peut sélectionner les moteurs de recherche utilisés par Searx
const setEngines = "&engines=google&disabled_engines=brave" // Brave renvoie souvent des résultats trop larges

// On peut définir la langue de recherche
const defineLang = "&language=all";
Expand Down Expand Up @@ -177,7 +178,7 @@ function search(searchInput) {
loaderElement.style.display = "block"
waitMessageElement.style.visibility = 'visible';
// On configure l'URL de notre moteur de recherche
searchText = encodeURI(searchInput) + " " + cseSyntax + defineLang + disabledEngines
searchText = encodeURI(searchInput) + " " + cseSyntax + defineLang + setEngines
const urlSearch = searchEngine + searchText;
// On lance la page de recherche
localStorage.setItem('searchLaunched', 'true');
Expand Down
2 changes: 1 addition & 1 deletion script.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b1fdcf8

Please sign in to comment.