Rules-based browser launcher for TUI + GNOME. switchyard.aly.codes
tui gome bowser go
0

Configure Feed

Select the types of activity you want to include in your feed.

webextensions: trim hedges

authored by

Aly Raffauf and committed by
Aly Raffauf
(May 24, 2026, 6:44 PM EDT) 2f7c4c29 a0a89c9a

+2 -13
-9
webextension/popup.html
··· 31 31 13px system-ui, 32 32 sans-serif; 33 33 } 34 - .header { 35 - padding: 10px 12px 8px; 36 - border-bottom: 1px solid var(--sep); 37 - color: var(--muted); 38 - font-size: 11px; 39 - overflow: hidden; 40 - text-overflow: ellipsis; 41 - white-space: nowrap; 42 - } 43 34 #root { 44 35 padding: 4px 0; 45 36 }
+2 -4
webextension/src/App.tsx
··· 7 7 name: string; 8 8 } 9 9 10 - type BrowserList = { browsers: Browser[] }; 11 - 12 10 const HOST = "io.github.alyraffauf.switchyard"; 13 11 const ROUTABLE = /^(https?|ftp|file):/; 14 12 const CACHE_KEY = "browsers_v2"; ··· 63 61 setLoaded(true); 64 62 return; 65 63 } 66 - const list = (resp as BrowserList)?.browsers ?? []; 64 + const list = (resp as { browsers: Browser[] })?.browsers ?? []; 67 65 cacheLocal(list); 68 66 setBrowsers(list); 69 67 setLoaded(true); ··· 90 88 style={{ flexShrink: 0, marginRight: 8 }} 91 89 alt="" 92 90 /> 93 - Open in Switchyard 91 + Switchyard 94 92 </button> 95 93 {((loaded && browsers.length === 0) || browsers.length > 0) && ( 96 94 <div className="separator" />