Thanks for the reply Aaron. I am not the author of the original Diigo bookmarklet application (which btw works great with Chrome). I was just trying to get my favorite bookmarking tool (with highlight feature) to work on Chrome without having to press the bookmarklet button all the time.
So I thought "hmm, a bookmarklet just executes JS code in the page's context... a bit like Greasemonkey... and 'content-scripts' are GM- like so why not throw a quick Chrome extension together"... but it seems there is more to Chrome's content-scripts then I thought.... In the original Diigo code, the author mixes "window.diigolet" and straight "diigolet" object access methods, which, if I remember correctly, is OK in the usual document object, right? but could be a problem with Chrome? jld. On May 29, 1:22 pm, Aaron Boodman <[email protected]> wrote: > Hello Jean-Lou, > > Thanks for trying out the system. Do you have a simple example of what > you mean with adding properties to the window object? > > There is a special setup of the window object in Chrome content > scripts. Basically each content script gets 'their own' window object. > If you add properties to it in one content script, they won't be > visible in other content scripts or from the web page's own > JavaScript. But it is rare for people to need to do this, so I'm > curious what you're up to. > > - a > > On Fri, May 29, 2009 at 7:40 AM, Jean-Lou Dupont > > > > <[email protected]> wrote: > > > I have put together a proof-of-concept extension for Diigo (http:// > >www.diigo.com/) here:http://code.google.com/p/chrome-diigo/ > > > It seems there is an issue with prototyping/adding objects to the > > "window" object. The javascript console complains the "diigolet" > > object being undefined but clearly looking at the JS code, the > > diigolet object is defined. --~--~---------~--~----~------------~-------~--~----~ Chromium Discussion mailing list: [email protected] View archives, change email options, or unsubscribe: http://groups.google.com/group/chromium-discuss -~----------~----~----~----~------~----~------~--~---
