I am also new to Chrome extensions, but I have a Firefox script that uses gmonkey and I would like to port it to Chrome.
I was skeptical that a content script would be able to use the gmonkey object, since the Chrome extension docs state that content scripts cannot use variables or functions defined by web pages. Nonetheless, with nothing to lose, I tried a short content script to look for the gmonkey object. When I do that, an error is thrown: Uncaught ReferenceError: gmonkey is not defined For what it's worth, I also tried accessing "window.gmonkey". That doesn't throw an error, but the value is undefined for Gmail pages (as well as other pages). My conclusion is that gmonkey is not available to Chrome extensions, unless the Chrome developers provide some special way to access it. Am I missing something here? john On Dec 20, 11:21 pm, Ian Davis <ihda...@gmail.com> wrote: > I'd love to help but I'm not sure! I'm trying to figure out how to > manipulate the DOM on whatever page I'm on. It's so easy to do in > Greasemonkey in Firefox! > > On Dec 20, 8:32 pm, FractalBob <ruom...@gmail.com> wrote: > > > > > Hi, > > > I want to extend Gmail and that includes creating a button in a > > specific position on the page. I know, visually, where I want it to > > go, but I'm having trouble translating the UI element to the stuff the > > DOM inspector/Developer tool displays. Any guidance would be very much > > appreciated. > > > Bob -- 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.