I’m trying to assign a block of javascript in Shortcut Manager,
chrome.tabs.getSelected(null, function(tab) {
alert (tab.url);
});
When it’s executed, it tells me chrome.tabs was undefined,
So I tried to execute it in the development panel:

What could be missing here ? An internal js library needs to be loaded ?
Chrome version: Version 21.0.1180.89 (154005)
I think
chrome.tabscan only be accessed inside extensions, so you wouldn’t be able to access it from the dev tools or in your shortcut.