Plan 9 from Bell Labs’s /usr/web/sources/contrib/stallion/root/arm/go/misc/chrome/gophertool/background.js
chrome.omnibox.onInputEntered.addListener(function(t) { var url = urlForInput(t); if (url) { chrome.tabs.getSelected(null, function(tab) { if (!tab) return; chrome.tabs.update(tab.id, { "url": url, "selected": true }); }); } });