Skip to content

Instantly share code, notes, and snippets.

@gamako
Last active July 17, 2018 05:13
Show Gist options
  • Save gamako/1dcec22cd963617075763c916545d6e3 to your computer and use it in GitHub Desktop.
Save gamako/1dcec22cd963617075763c916545d6e3 to your computer and use it in GitHub Desktop.
create Apple device list in Apple Developer Site
// print Apple Device List (https://developer.apple.com/account/ios/device/iphone) on Chrome Developer Console
Array.from({length: $("tr").filter((i,o)=>/^[0-9]+$/.test(o.id)).length}, (v, k) => k).forEach(j=>{var i=j+1;setTimeout(()=>{;$("tr#"+i).click()},100*i);setTimeout(()=>{console.log(""+i+",", ["dd.name","dd.model","dd.deviceNumber"].map((s)=>'"'+$('tr#'+i+'+tr').find(s).text()+'"').join())},50+100*i);})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment