Is it possible to obtain the search query from Google search results page, given the page's URL? I've noticed that the search query is usually shown in the URL, but the format of the URL can sometimes be slightly confusing.
For example, one search results URL for the search stackoverflow
is
Another URL for the same search string is
Would there be any way to obtain the Google search query from all types of Google search result URLs using JavaScript?