Skip to content

Commit

Permalink
refactor: preparation for new search engine UI
Browse files Browse the repository at this point in the history
  • Loading branch information
00Fjongl committed Feb 7, 2025
1 parent 3eb8bc7 commit 618b299
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions views/assets/js/common-1735118314.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,18 @@ const setAuthCookie = (s, lax) => {

/* OMNIBOX */

const searchEngines = Object.freeze({
Google: 'google.com/search?q=',
Bing: 'bing.com/search?q=',
DuckDuckGo: 'duckduckgo.com/?q=',
Startpage: 'startpage.com/sp/search?query=',
}),
defaultSearch = searchEngines['DuckDuckGo'];

// Search engine is set to DuckDuckGo. Intended to work just like the usual
// bar at the top of a browser.
const sx = 'duckduckgo.com/?q=',
/*
const sx = defaultSearch,
/*
omnibox = url =>
(url.indexOf("http")
? "https://" + (url.indexOf(".") < 1 ? sx : "")
Expand Down
2 changes: 1 addition & 1 deletion views/pages/misc/deobf/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
<option>Google</option>
<option>Bing</option>
<option>DuckDuckGo</option>
<option>Yahoo</option>
<option>Startpage</option>
</select>
<p class="cseltitle">About:Blank</p>
<div class="switch-container">
Expand Down

0 comments on commit 618b299

Please sign in to comment.