File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ if (form && input) {
3434function 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 ;
Original file line number Diff line number Diff 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=" ,
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change 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/" ,
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff 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 >
You can’t perform that action at this time.
0 commit comments