- set up USB debugging on your phone
- plug your USB in and allow MTP connection
- open Chrome devtool remote device panel
- choose your device, and expand the list
- make your devtool in pop-out mode
- option+cmd+I to open a new devtool for the old devtool
- copy paste and run the following code, which will copy the results as markdown to clipboard
tabs = document.querySelectorAll('div /deep/ div /deep/ div /deep/ div /deep/ div /deep/ .device-page-list .vbox')
str = '';
for (i=0;i<tabs.length;i++){
if (tabs[i].querySelector('.device-page-url .devtools-link') != null){
str += '- ['+tabs[i].querySelector('.device-page-title').textContent + '](' + tabs[i].querySelector('.device-page-url .devtools-link').getAttribute('href') +')\n'
} else {
console.log(tabs[i])
}
}
copy(str)
- paste the results to vscode, save the file and shift+cmd+V to preview the markdown file