3 ms·
How is this used ? Do I just copy this into the address bar ?
by marcamillion 16y ago
How is this used ? Do I just copy this into the address bar ?
- kaichanvong 16y agoNope you need to use console. Switch on dev tool bar on Safari or CTRL + Shift + C in Chrome and then console, paste, run.
- rsoto 16y agoYou don't need the console.
- kaichanvong 16y agoSorry - you don't need the console to inject JavaScript into the page. But for the code linked at the top of the page, you will. See the code above that begins with "javascript:" and you can use that to inject the javascript through the URL bar!
- drake2010 16y agoYou can arbitrarily inject javascript on any page after launch. Here's how to do it in Safari http://www.youtube.com/watch?v=34D7IR7lNHc http://www.youtube.com/watch?v=34D7IR7lNHc Chrome: View > Developer > Javascript Console Firefox: Install the firebug extension, which does autocompletion and makes developing much more fun. Not sure if this still works in Firefox 4
- zoomzoom 16y agoyes, just use the address bar and preface with "javascript:"