Skip to content

Instantly share code, notes, and snippets.

@tsterker
Last active August 29, 2015 13:56
Show Gist options
  • Save tsterker/8933018 to your computer and use it in GitHub Desktop.
Save tsterker/8933018 to your computer and use it in GitHub Desktop.
var toGet=['media_id', 'author_name'];var json=document.getElementById('json').innerText.split('\n');for(var i=0,len=json.length;i<len;i++){var match=new RegExp('(.*): (.*),?').exec(json[i]);if(match && toGet.indexOf(match[1])>-1){var dump=prompt(match[1],match[2].replace(/&#34;/g,'').replace(/,$/, ''));}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment