If I understand your question, you don't need jquery at all, just use
to use the url
var the_link = document.location
to get only the hash of the url (text after #) use
var the_hash = document.location.hash
to get get variables that you can use
var get_vars = document.location.search
source
share