Skip to content

Instantly share code, notes, and snippets.

@lukekarrys
Created November 14, 2012 21:36
Show Gist options
  • Save lukekarrys/4074997 to your computer and use it in GitHub Desktop.
Save lukekarrys/4074997 to your computer and use it in GitHub Desktop.
Pluck URL Param
/* Got this from Instagram Profile Pages http://d36xtkk24g8jdx.cloudfront.net/bluebar/c535104/scripts/bluebar.js */
function get_param(name) {
return decodeURI(
(RegExp(name + '=' + '(.+?)(&|$)').exec(location.search)||[,null])[1]
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment