This thing is conceptually quite complicated with so many parts: background script, content script, UI for button in tool bar or in address bar, pop-ups, options pages and permissions. Also I didn't set up a nice dev environment. Where the hell was the diagnostic output from my extension? Anyway finally