Thanks, but i know you`re lying. ;-)
It`s not working as expected so far. Maybe someone in this group who
is engaged in the extension system can tell me if it`s just me or if
they had similar problems, or if someone has an idea how to get around
the following things.

1. Using content scripts, eventhandlers seem to be a little unreliable
For the show-the-image-extension i used the "subscribe"-example, where
the find-function is called when the script is intialized and onfocus.
Assuming "onfocus" is on focus of the tab, which sometimes works, but
sometimes not.

2. I think it should be easier to manipulate the DOM from within an
extension.
Instead of the use of a content script to access the contentwindow it
would be more intuitive to be able to use something like
chrome.tabs.getSelected(windowID,function(tab) {
    tab.document.getElementByTagName('whatever');
})
directly out of the extension itself.

3. The ability of sending messages between extension and conten
scripts does not work as i expected but i haven`t figured out yet if
this is an issues in the extension or the extension system itself. In
my case i think it would be better to trigger the scan for images or
image links on demand than onload or onfocus but it doesn`t work
properly, especially if you have more than one open tab.

4. I`m missing the possibility to manipulate the DOM before everything
is loaded. Maybe you wanna make an adblock-extension, you can prevent
ads from displaying but it would be better to not even load e.g. to
save bandwidth.

5. I even more miss the ability to save things on the clientside and
to use base authentication in XHR requests, which seems to not work
correctly. I started to make an extension which keeps an eye on my
nagios-monitored systems.
I made an xml file to store the connection-information which i can
read from my extension but i can`t change it from within a gui or
something. So i can check the status if i login once in a session
manually, like in the gmail-check example, can connect to the host,
defined in the preferences.xml, but i dont have the ability to store
this information and log-in automatically from within the extension.
Maybe someone has an idea how to do this.

That was pretty much. Sorry for that.
And i haven`t used my english skills for quite a while. Sorry for that
as well. ;-)


On 28 Mai, 17:12, Mohamed Mansour <[email protected]> wrote:
> Very nice ! Keep them coming :)
> -- Mohamed Mansour
>
> On Thu, May 28, 2009 at 7:02 AM, Patrick Stenzel <
>
>
>
> [email protected]> wrote:
>
> > As you can read in the subject i`m trying out how the extension system
> > works and what is yet possible and what ain`t. I made my first two
> > projects and would be glad if someone wants to test them out.
>
> > Both extensions are ports from Firefox extensions i sometimes use.
>
> > The first one is "Show the image" which can be found here:
> >http://code.google.com/p/show-the-image/
> > It scans every page on load, extracts the largest image of the page
> > and if you click the button replaces the current tab with that image
>
> > The second on is "Browse images" which can be found here:
> >http://code.google.com/p/browse-images/
> > This one scans the page on load for linked images. On click it opens
> > every found image link in a new tab.
> > The original extension can do much more than the port so far, but its
> > a beginning. ;-)
>
> > Maybe i better use page actions for this in the future, but i haven`t
> > tried that til now.
> > I don`t know if this is the right place for this question, but does
> > anyone know when extensions will be able to use drop downs? In the
> > newest version the extension name specified in the manifest is shown
> > in something like that. This would be a great improvement i think.
>
> > And last but not least, there should be a separate discussion group
> > for extension developers.
--~--~---------~--~----~------------~-------~--~----~
Chromium Discussion mailing list: [email protected] 
View archives, change email options, or unsubscribe: 
    http://groups.google.com/group/chromium-discuss
-~----------~----~----~----~------~----~------~--~---

Reply via email to