2

I want to be able to capture the current URL and/or the URL of all open tabs.

Can I do this in JavaScript or jQuery or am I going to need a plugin in FireFox/Chrome?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
ian
  • 11,605
  • 25
  • 69
  • 96

3 Answers3

6

"capture (...) URL of all open tabs."

Why don't you ask Chrome for the stored passwords while you are at it?

The answer is: No, you can't.
It would be a serious privacy issue if that was remotely possible.

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
NullUserException
  • 83,810
  • 28
  • 209
  • 234
3

Stack Overflow question Get current URL in JavaScript? is showing how to get the current URL.

But I am not sure about getting the URL for all tabs.

Community
  • 1
  • 1
Amit Soni
  • 3,216
  • 6
  • 31
  • 50
0

Like the other posters said, you can’t grab URLs of tabs besides the current one with standard JavaScript. But you can with Firefox / Google Chrome extensions.

oldestlivingboy
  • 2,914
  • 2
  • 21
  • 15