views:

70

answers:

2

I am trying to script a web page using GreaseMonkey. (I am using Firebug for help in development.) The page has a small amount of JavaScript code, but that code pulls in other JS files from the site. Are the entire collection of JS files stored somewhere on the client side (i.e. on the filesystem somewhere) so that I can view them? Or better yet, is there a way I can view them in Firebug? I am a little overwhelmed by Firebug but will be able to follow instructions. Many thanks. (My first ever question on SO!)

-Todd

+8  A: 

Click the script tab in Firebug. Then look immediately below the tab for a dropdown that shows all the scripts.

Robusto
My thought exactly.
jensgram
YES! Thank you. Too bad I can't upvote anyone yet.
Toddintr
@Toddintr You can, however, accept the answer if you wish :)
jensgram
DONE, but would appreciate further explanations (see my comments above)! This is a great site.
Toddintr
A: 

right click - view source

Pierreten
Fine but the included JS files include yet other files. I am looking for a way to pull in all files as a collection.
Toddintr
The source is static, i.e., no dynamically loaded scripts will be shown.
jensgram
Is there a way to see dynamically loaded scripts as well?
Toddintr
Here's the code:<script src="/tr/js/main.js"></script>I can paste the source to the root of the site URL and see the source. I am looking for a more convenient/faster method. Also, there is no "view source" option on right-click.
Toddintr
However, since Firefox 3.6 you can click your way through the `<script src>` links.
BalusC
@BalusC: I am running 3.6.3 and Firebug 1.5. In the script tab when I click anywhere on <script src> line nothing happens.
Toddintr
In the view source.
BalusC