I just went through this with someone and maybe it could help you....
http://www.chromeplugins.org/google/chrome-plugins/new-ext-better-gmail-8948.html
...I didnt test it, but he said it works

On Dec 14, 4:11 am, hexid <nick.curr...@gmail.com> wrote:
> ok...but i can't get the examples to work...they don't send or recieve
> anything in the log...
>
> On Dec 13, 10:57 am, PhistucK <phist...@gmail.com> wrote:
>
>
>
> > Yes, it is the same localStorage among the Options page and the Background
> > page, but content scripts do not have access to the localStorage of the
> > extension, that is why you need to send a request.
>
> > ☆PhistucK
>
> > On Sun, Dec 13, 2009 at 19:30, hexid <nick.curr...@gmail.com> wrote:
> > > hmm...thats weird because i changed my background page to declare some
> > > vars and store the localstorage values into them and works fine...just
> > > still having issues sending it to the content script...
>
> > > On Dec 13, 4:49 am, PhistucK <phist...@gmail.com> wrote:
> > > > You cannot really do that.
> > > > What you need to do, is to save the options into the localStorage, like
> > > you
> > > > are doing right now. But since the options page is not a background page
> > > > (meaning, it is not active in the background, once you close it, it is
> > > not
> > > > there anymore), you cannot really communicate to it.
> > > > Create a background page that its only purpose it to receive a message
> > > from
> > > > the content script and send a response.
> > > > You can use the "Single one time requests" for that (
> > >http://code.google.com/chrome/extensions/messaging.html#simple).
> > > > Send a request in the content script and once you get the response, act
> > > (if
> > > > needed)
> > > > .
> > > > ☆PhistucK
>
> > > > On Thu, Dec 10, 2009 at 15:12, hexid <nick.curr...@gmail.com> wrote:
> > > > > nction() {
> > > > >  var filterPosition = document.getElementById("#position").value;
> > > > >  switch(filterPosition)
> > > > >  {
> > > > >  case "top":
> > > > >    $("#home_filter_list").insertBefore("#pagelet_reqbox");
> > > > >    var css = default_css;
> > > > >    break;
> > > > >  case "bottom":
> > > > >    $("#home_filter_list").insertAfter("#pagelet_syndicationbox");
> > > > >    var css = default_css;
> > > > >    break;
> > > > >  case "original":
> > > > >    var css = "#home_filter_list\n{display: block !important;}";
> > > > >    break;
> > > > >  default:
> > > > >    alert("hello");
> > > > >    break;
>
> > > --
>
> > > 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.


Reply via email to