How can I detect if the current tab is on a specific page, (eg
http://google.com (or www.google.com or http://www.google.com, etc))
and if it is, put a icon in the URL bar?

I am guessing its something like this:

if tab.url = "http://www.google.com/";
  {
  chrome.pageAction.setIcon({path: "icon.png",tabId: tab.id});
  chrome.pageAction.setTitle({title: "You are on google.com!", tabId:
tab.id});
  });

however, that does not work :-(
a little help? :-)

--

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