1a. You should be able to make those events run before the DOM is
constructed by setting run_at in the manifest to "document_start". See
http://code.google.com/chrome/extensions/content_scripts.html.
1b. You might trying to use window.addEventListener(...) instead.
2. This might be if you are testing on the extension gallery page.
Content scripts are blocked from the extension gallery.
4a.  There's no way that I know of of removing icons.
4b. Use a page action: http://code.google.com/chrome/extensions/pageAction.html.

Regards,
Max

On Dec 16, 2:31 pm, Srivatsan Iyer <supersaiyanmode....@gmail.com>
wrote:
> I am trying to make an extension that does something like, close a few
> tabs, focus a certain tab, duplicate the current tab..
>
> The problems that I'm facing with it are:
>
> 1. I have set a keyListener(inside a content script) to look for a
> certain key combination; using document.addEventListener('keyup',
> keyCheck, false);
>     But the problem is, I can fire those events only after the page
> shows some sign of being loaded..How can I fire the event before the
> page loads?
>
> 2. Besides even if I set the content script's "matches": [ "https://*/
> *", "http://*/*";], the extension does not work on https pages..Why is
> it so?
>
> 3. For duplication of current Tab, I open a new tab, and put in the
> same URL. Is there any way in which I can perform actual duplication?
> In the sense that the history for the tab is also maintained?
>
> 4. Is there any way to add and remove icon from the toolbar? And Is
> there any way to add icons to the right edge inside the address text
> field?
>
> Thanks in advance..
>
> cheers,

--

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