When you go to the JS file, you will see the source code.
If you want to be able to run it via the address bar, you could copy and paste the entire code, and prefix it with
javascript: pseudo-url.
For example, the contents of host.com/x.js is:
- Code: Select all
alert('hi');
alert('hello');
...copy that code, and place that in the address bar on this format:
- Code: Select all
javascript:alert('hi');alert('hello');
Hope that helps.