Skip to content

Instantly share code, notes, and snippets.

@matthewmayer
matthewmayer / gist:4442272
Last active December 10, 2015 13:38 — forked from anonymous/gist:4442268
Export list of UDIDs and device names from https://developer.apple.com/ios/manage/devices/index.action
var tds = document.getElementsByTagName("td"); for (var i=0;i<tds.length;i++) {var td = tds[i]; if (td.attributes["title"]) {var name = td.parentNode.getElementsByClassName("name")[0].getElementsByTagName("span")[0].firstChild.nodeValue; console.log(td.attributes["title"].nodeValue+","+name);}}