No, it isn't. However, you can include jQuery in the extension and
it'll work fine.

Evgeny
InvisibleHand

On Fri, Dec 11, 2009 at 9:04 AM, niska <kia.niskava...@gmail.com> wrote:
>
> I've tried using content scripts. But I get a error message. Isn't it
> possible to include external javascripts?
>
> My code:
>
> "js": ["http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/
> jquery.min.js", "myscript.js"]
>
>
> On 10 Dec, 21:13, Aaron Boodman <a...@google.com> wrote:
>> You can do something similar to @require by listing multiple scripts
>> in the content script declaration. So like:
>>
>> ...
>> "content_scripts": [
>>   {
>>     "matches": [...],
>>     "js": ["jQuery.js", "myscript.js"]
>>   }
>> ]
>> ...
>>
>> For more information, see:
>>
>> http://code.google.com/chrome/extensions/content_scripts.html
>>
>> - a
>>
>>
>>
>> On Thu, Dec 10, 2009 at 10:51 AM, PhistucK <phist...@gmail.com> wrote:
>> > 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.
>> >> 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.
>
> --
>
> 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.
For more options, visit this group at 
http://groups.google.com/group/chromium-extensions?hl=en.


Reply via email to