Inspired by https://gist.github.com/3296982
Created
November 29, 2012 08:02
-
-
Save brainv/4167481 to your computer and use it in GitHub Desktop.
Extract Device ID on iOS Provisioning Portal
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 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