Skip to content

Instantly share code, notes, and snippets.

@tobsn
Created May 25, 2011 23:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tobsn/992227 to your computer and use it in GitHub Desktop.
Save tobsn/992227 to your computer and use it in GitHub Desktop.
var P={};(function(q,u,e,r,y){q=/\+/g;u=/([^&=]+)=?([^&]*)/g;e=function(s){return decodeURIComponent(s.replace(q,' '));};r=window.location.search.substring(1);while(y=u.exec(r)){P[e(y[1])]=e(y[2]);}})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment