diff --git a/package.json b/package.json index 5e7de37..a85fca3 100644 --- a/package.json +++ b/package.json @@ -14,5 +14,11 @@ }, "dependencies": { "vite-plugin-pwa": "^0.21.1" + }, + "packageManager": "pnpm@10.5.2+sha512.da9dc28cd3ff40d0592188235ab25d3202add8a207afbedc682220e4a0029ffbff4562102b9e6e46b4e3f9e8bd53e6d05de48544b0c57d4b0179e22c76d1199b", + "pnpm": { + "onlyBuiltDependencies": [ + "esbuild" + ] } } diff --git a/src/bang.ts b/src/bang.ts index 8425bec..5ffd00f 100644 --- a/src/bang.ts +++ b/src/bang.ts @@ -1,6 +1,15 @@ // This file was (mostly) ripped from https://duckduckgo.com/bang.js export const bangs = [ + { + c: "Online Services", + d: "search.gibbyb.com", + r: 0, + s: "GibbyB", + sc: "Search", + t: "sg", + u: "https://search.gibbyb.com/?q={{{s}}}", + }, { c: "AI", d: "www.t3.chat", @@ -10,24 +19,6 @@ export const bangs = [ t: "t3", u: "https://www.t3.chat/new?q={{{s}}}", }, - { - c: "Tech", - d: "www.01net.com", - r: 4, - s: "01net", - sc: "Downloads (apps)", - t: "01net", - u: "http://www.01net.com/recherche/recherche.php?searchstring={{{s}}}&chaine=home", - }, - { - c: "Entertainment", - d: "www.bmw2002faq.com", - r: 0, - s: "BMW 2002 FAQ", - sc: "Forum", - t: "02faq", - u: "https://www.bmw2002faq.com/search/?q={{{s}}}", - }, { c: "Entertainment", d: "boxofficemojo.com", @@ -93872,7 +93863,7 @@ export const bangs = [ r: 46, s: "Sourcegraph", sc: "Programming", - t: "sg", + t: "srcg", u: "https://sourcegraph.com/search?q={{{s}}}", }, { diff --git a/src/global.css b/src/global.css index 7468225..ac468d7 100644 --- a/src/global.css +++ b/src/global.css @@ -99,6 +99,7 @@ textarea { border-radius: 4px; width: 100%; background: #f5f5f5; + text-align: center; } .copy-button { diff --git a/src/main.ts b/src/main.ts index 13ebe48..64a7cf0 100644 --- a/src/main.ts +++ b/src/main.ts @@ -6,13 +6,12 @@ function noSearchDefaultPageRender() { app.innerHTML = `
-

Und*ck

-

DuckDuckGo's bang redirects are too slow. Add the following URL as a custom search engine to your browser. Enables all of DuckDuckGo's bangs.

+

Bang

-
`; @@ -35,7 +27,7 @@ function noSearchDefaultPageRender() { const urlInput = app.querySelector(".url-input")!; copyButton.addEventListener("click", async () => { - await navigator.clipboard.writeText(urlInput.value); + await navigator.clipboard.writeText("https://" + urlInput.value); copyIcon.src = "/clipboard-check.svg"; setTimeout(() => { @@ -44,7 +36,7 @@ function noSearchDefaultPageRender() { }); } -const LS_DEFAULT_BANG = localStorage.getItem("default-bang") ?? "g"; +const LS_DEFAULT_BANG = localStorage.getItem("default-bang") ?? "sg"; const defaultBang = bangs.find((b) => b.t === LS_DEFAULT_BANG); function getBangredirectUrl() {