Last active
August 29, 2015 13:56
-
-
Save tsterker/8933018 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(/"/g,'').replace(/,$/, ''));}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment