I believe the last could be possible if you place a keyboard event listener in the background page, then if it's received you execute: popup = window.open(chrome.extension.getURL('popup.html'))
This could be blocked by a popup blocker, so you could use tabs: chrome.tabs.create({url:chrome.extension.getURL ('popup.html')},function (tab) {openinTab(tab)}) Where openinTab(tab) would change your popup to work in tabs. On Jan 17, 10:55 am, Gianni <giann...@gmail.com> wrote: > can i fitch the personal id in google reader about next bookmarklet? > can i assign a keyboard shortcut to the browser.action? and open in full > screen? > i'm newbie. :) > > 2010/1/15 Pedro Junior <v.ju.ni.o...@gmail.com> > > > > > *Yes, but how you said he get the values only once. > > * > > - > > Pedro Junior > > > 2010/1/15 PhistucK <phist...@gmail.com> > > > Why would he need to do that? > >> The localStorage should be persistent across the extension. > > >> ☆PhistucK > > >> On Thu, Jan 14, 2010 at 23:31, Pedro Junior <v.ju.ni.o...@gmail.com>wrote: > > >>> * > >>> You must redefine the value. > > >>> Add this line in save_options function: * > >>> *chrome.extension.getBackgroundPage().value = > >>> localStorage.getItem("grtag"); > >>> * > >>> - > >>> Pedro Junior > > >>> 2010/1/14 Gianni <giann...@gmail.com> > > >>>> I have a form in option page for update a LocalStorage but need reload > >>>> the extension for working. > > >>>> option.html > > >>>> <html> > >>>> <head> > >>>> <title>Next Tag setting</title> > >>>> <script type="text/javascript"> > >>>> function save_options() { > >>>> localStorage.setItem("grtag", > >>>> document.getElementById("tag").value); > >>>> //chrome.tabs.getSelected(null, function(tab) > >>>> {chrome.tabs.remove > >>>> (tab.id);}); > >>>> } > >>>> </script> > >>>> </head> > >>>> <body> > >>>> <form name="form" action=> > >>>> <input type="text" placeholder="your tag" id="tag"/> > >>>> <button onclick="save_options()">Save</button> > >>>> </form> > >>>> </body> > >>>> </html> > > >>>> background.html > > >>>> <html> > >>>> <head> > >>>> <script> > >>>> var grurl = 'https://www.google.com/reader/next?go=nextauto&t='; > >>>> value = localStorage.getItem("grtag"); > >>>> chrome.browserAction.onClicked.addListener(function(tab) { > >>>> chrome.tabs.update(tab.id, {url: grurl + > >>>> "4022757919936136911" + > >>>> "&label=" + value}); > >>>> }); > >>>> </script> > >>>> </head> > >>>> </html> > > >>>> -- > >>>> You received this message because you are subscribed to the Google > >>>> Groups "Chromium-extensions" group. > >>>> To post to this group, send email to > >>>> chromium-extensi...@googlegroups.com. > >>>> To unsubscribe from this group, send email to > >>>> chromium-extensions+unsubscr...@googlegroups.com<chromium-extensions%2Bunsu > >>>> bscr...@googlegroups.com> > >>>> . > >>>> For more options, visit this group at > >>>>http://groups.google.com/group/chromium-extensions?hl=en. > > >>> -- > >>> You received this message because you are subscribed to the Google Groups > >>> "Chromium-extensions" group. > >>> To post to this group, send email to > >>> chromium-extensi...@googlegroups.com. > >>> To unsubscribe from this group, send email to > >>> chromium-extensions+unsubscr...@googlegroups.com<chromium-extensions%2Bunsu > >>> bscr...@googlegroups.com> > >>> . > >>> For more options, visit this group at > >>>http://groups.google.com/group/chromium-extensions?hl=en.
-- You received this message because you are subscribed to the Google Groups "Chromium-extensions" group. To post to this group, send email to chromium-extensi...@googlegroups.com. To unsubscribe from this group, send email to chromium-extensions+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/chromium-extensions?hl=en.