Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'm curious what you use Javascript in the URL bar for?

It's been used as a security hole: A large-ish number of Facebook/etc phishing scams have had people copy javascript into their address bar.

For technical users, it's a pretty bad interface for writing and testing javascript.

Check out the Web Console or Scratchpad under the Web Developer Tools menu instead. It's really a much nicer way to run some impromptu javascript on a page.



It's useful for allowing non-technical users to do something like setting a cookie when you're trying to help them debug remotely.


Chrome and Firefox both include easy to access developer consoles to execute JavaScript in now.


Then, what good did disabling it in the URL bar do? :)


"Open the developer tools and paste this into the JavaScript Console" is far less effective as "paste this into your address bar" as far as phishing schemes go. At least, in my experience. YMMV.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: