Is it possible to get the string displayed in the URL bar using javascript?
<p>I realize that window.location.href sometimes returns something other than the string displayed in the URL bar. Is there any way to get the string displayed in the URL bar in Javascript?</p>

<p>When I visit www.google.com using this user script, document.location.href is not always "www.google.com" as expected.</p>
