- JavaScript 99.6%
- CSS 0.3%
- HTML 0.1%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| bangs-LICENSE.txt | ||
| bangs.js | ||
| config.js | ||
| hashes.js | ||
| ids.js | ||
| kagi.js | ||
| make-bangs.mjs | ||
| make-hashes.mjs | ||
| manifest.json | ||
| newtab.css | ||
| newtab.html | ||
| newtab.js | ||
| omnibar.js | ||
| README.md | ||
| thumb.js | ||
| thumbhash.js | ||
| yeetbar.js | ||
Private Earth View + yeetbar
A Chrome new-tab page: random Google Earth View background, a clock, and a headless omnibar.
Install
- Unzip this folder.
- Open
chrome://extensions, switch on Developer mode. - Load unpacked and pick the folder. Open a new tab.
What the bar understands
| Type | Result |
|---|---|
github.com/foo, localhost:3000 |
goes straight there |
!yt cat falls, cat falls !yt |
searches that site (Kagi's ~13,600 bang triggers, prefix or suffix) |
!hn, !g (no query) |
opens the site itself |
!gi |
autocompletes matching bangs; pick one to fill the input |
(12+8)*3^2 |
= 180, Enter copies it |
mail |
your shortcut (prefixes work too) |
| anything else | searches your default engine (DuckDuckGo) |
Keys: arrows or Tab to move, Enter to open, Ctrl/Cmd+Enter for a new tab, Esc to clear. Start typing anywhere on the page and the bar catches it.
Customise
Edit config.js: default engine (any bang trigger), shortcuts, your own bangs (they beat Kagi's), and your own providers. Reload the extension after saving.
Bangs
The bang list is kagisearch/bangs (MIT, see bangs-LICENSE.txt), converted to bangs.js and loaded only the first time you type !. Kagi's format rules are honoured: URL-encoding flags, regex bangs like !rsr, and what a bare bang opens. Kagi's internal bangs (kagi_bangs.json) are left out. To refresh the list: node make-bangs.mjs.
Files
yeetbar.js: the headless omnibar library (no DOM, no deps, no eval)kagi.js: adapter that plugs the Kagi bang list into yeetbar;bangs.jsis its generated dataomnibar.js: the UI wiring;config.js: your settingsnewtab.*,thumb.js,thumbhash.js,ids.js,hashes.js: the Earth View pagemake-hashes.mjs: optional, fillshashes.jswith blurred placeholders (npm i thumbhash sharp && node make-hashes.mjs)
Privacy
Page CSP allows only wsrv.nl (images) and gstatic.com (location details, off by default). Searching sends your query to the engine you pick, nothing else.