I would like to run the chrome.browserAction.setBadgeText method when my popup extension loads. When I put this code in the global scope, it only works when the extension button is clicked. But I would like to see an icon when Google Chrome starts up. What is the method I'm looking for?
thanks
You want to create a wallpaper that can load any javascript that you want. The background page loads when you open the browser, so it should be pretty trivial to run the code at boot time.