Get the current document address (Firefox extension)
The accepted answer here is wrong, but the related comment is much closer.
The phsr FAQ linked to "Get the current tab document", but Mozilla changed all of its links without maintaining backward compatibility and thus breaking a lot of linked sites.
Given that you can easily request
. If your use case is more complex than a script running in an active tab (for example, your script is running in a XUL popup), then your best bet is to read the FAQ.
source to share