Skip to content

Instantly share code, notes, and snippets.

@brainv
Created November 29, 2012 08:02
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 brainv/4167481 to your computer and use it in GitHub Desktop.
Save brainv/4167481 to your computer and use it in GitHub Desktop.
Extract Device ID on iOS Provisioning Portal
var myelements = document.querySelectorAll('table tbody tr');
console.log("deviceIdentifier\tdeviceName");
for (i=0; i<myelements.length; i++) {
var name = myelements[i].querySelectorAll('span')[0].title;
var udid = myelements[i].querySelectorAll('td.id')[0].title;
if (!name) {
name = myelements[i].querySelectorAll('span')[0].innerText;
}
console.log(name + "\t" + udid);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment