Skip to content

Instantly share code, notes, and snippets.

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 mikeyk/551677 to your computer and use it in GitHub Desktop.
Save mikeyk/551677 to your computer and use it in GitHub Desktop.
// first use the jQuerify plugin here: http://www.learningjquery.com/2009/04/better-stronger-safer-jquerify-bookmarklet
$jq("tbody tr", $("#fs-0")).each(function(index, el){
var nameTD = $jq("td.name", el);
var nameSpan = $jq("span", nameTD);
var name = nameSpan.attr("title") ? nameSpan.attr("title") : nameSpan.text();
var deviceID = $jq("td.id", el).attr("title");
console.log(name + '\t' + deviceID);
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment