- Custom engine dropdown as a floating overlay view (engine-picker.html) that renders REAL favicons per engine — a native <select> can't show images. - Larger catalog (DuckDuckGo/Google/Brave/Bing/Startpage/Yandex/Ecosia/Mojeek/ SearXNG/Wikipedia/Perplexity); Settings has a favicon checklist to choose which appear in the dropdown (enabledEngines), plus manual add/remove. - OpenSearch "scan": pages advertising a search engine surface an "Add <site>'s search" entry in the dropdown. - Toolbar search box now just a magnifier button that opens the dropdown (no per-engine icon in the bar).
9 lines
470 B
JavaScript
9 lines
470 B
JavaScript
const { contextBridge, ipcRenderer } = require("electron");
|
|
contextBridge.exposeInMainWorld("picker", {
|
|
onEngines: (cb) => ipcRenderer.on("engines", (_e, d) => cb(d)),
|
|
pick: (id) => ipcRenderer.invoke("pick-engine", id),
|
|
addDetected: () => ipcRenderer.invoke("add-detected-engine"),
|
|
openSettings: () => ipcRenderer.invoke("picker-open-settings"),
|
|
close: () => ipcRenderer.invoke("close-engine-picker"),
|
|
resize: (h) => ipcRenderer.invoke("ep-resize", h),
|
|
});
|