Skip to content

Commit a2dd36b

Browse files
committed
Switched default search engine to Brave after a request from DuckDuckGo
1 parent f9ca272 commit a2dd36b

6 files changed

Lines changed: 6 additions & 12 deletions

File tree

static/assets/js/index-3.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ if (form && input) {
3434
function processUrl(value, path) {
3535
let url = value.trim();
3636
const engine = localStorage.getItem("engine");
37-
const searchUrl = engine ? engine : "https://duckduckgo.com/?q=";
37+
const searchUrl = engine ? engine : "https://search.brave.com/search?q=";
3838

3939
if (!isUrl(url)) {
4040
url = searchUrl + url;

static/assets/js/s1.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,9 +310,9 @@ function EngineChange(dropdown) {
310310
const selectedEngine = dropdown.value;
311311

312312
const engineUrls = {
313+
Brave: "https://search.brave.com/search?q=",
313314
Google: "https://www.google.com/search?q=",
314315
Bing: "https://www.bing.com/search?q=",
315-
DuckDuckGo: "https://duckduckgo.com/?q=",
316316
Qwant: "https://www.qwant.com/?q=",
317317
Startpage: "https://www.startpage.com/search?q=",
318318
SearchEncrypt: "https://www.searchencrypt.com/search/?q=",

static/assets/js/t3.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ window.addEventListener("load", () => {
77
form.addEventListener("submit", async event => {
88
event.preventDefault();
99
const formValue = input.value.trim();
10-
const url = isUrl(formValue) ? prependHttps(formValue) : `https://duckduckgo.com/?q=${formValue}`;
10+
const url = isUrl(formValue) ? prependHttps(formValue) : `https://search.brave.com/search?q=${formValue}`;
1111
processUrl(url);
1212
});
1313
}

static/assets/json/a.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,6 @@
9191
"image": "/assets/media/icons/dc.jpg",
9292
"categories": ["all", "social"]
9393
},
94-
{
95-
"name": "DuckDuckGo",
96-
"link": "https://start.duckduckgo.com/",
97-
"image": "/assets/media/icons/duckduckgo.webp",
98-
"categories": ["all"]
99-
},
10094
{
10195
"name": "ESPN",
10296
"link": "https://www.espn.com/watch/",

static/assets/json/a.min.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

static/settings.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,9 @@ <h3>Set Background Image</h3>
159159
<h3>Search Engine</h3>
160160
<p>Change the search engine when searching.</p>
161161
<select title="engine" id="engine" onchange="EngineChange(this)">
162-
<option value="Google">Google (Default)</option>
162+
<option value="Brave">Brave (Default)</option>
163+
<option value="Google">Google</option>
163164
<option value="Bing">Bing</option>
164-
<option value="DuckDuckGo">DuckDuckGo</option>
165165
<option value="Qwant">Qwant</option>
166166
<option value="Startpage">Startpage</option>
167167
<option value="SearchEncrypt">SearchEncrypt</option>

0 commit comments

Comments
 (0)