I guess that if you replace the require with some kind of document.write("<scri+"pt src=\"http://blabla/jquery.js\"><"+"/script>") or something like that (and maybe put a setTimeout, or an event listener if jQuery creates an event once it is loaded), you will have your jQuery. No? Or, put the entire jQuery file contents at the beginning of your UserScript! sucks but should work.
☆PhistucK On Thu, Dec 10, 2009 at 21:45, Pedro Junior <v.ju.ni.o...@gmail.com> wrote: > Maybe Content Scripts will serve for you: > http://code.google.com/chrome/extensions/content_scripts.html > > > ----- Original Message ----- > From: "niska" <kia.niskava...@gmail.com> > To: "Chromium-extensions" <chromium-extensions@googlegroups.com> > Sent: Thursday, December 10, 2009 5:35 AM > Subject: [chromium-extensions] Transform a Greasemonkey userscript into a > Chrome extension > > > > > I've got a *really* simple userscript (think Hallo World). But I'm > > unable to run it in chrome, since chrome doesn't support @require. And > > my userscript requires jquery to run. > > > > According to the Chrome docs, @require won't be implemented - since it > > is already implemented in extensions. > > > > The only problem is that I have never build a Chrome extension. > > > > What do I need to transform a "hello world"-userscript that uses > > jquery, into a Chrome extension? > > > > -- > > > > 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. > > > > > > > > -- > 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<chromium-extensions%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/chromium-extensions?hl=en. > -- 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.