Skip to content

Instantly share code, notes, and snippets.

@kangax
Last active December 15, 2015 03:39
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 kangax/5195536 to your computer and use it in GitHub Desktop.
Save kangax/5195536 to your computer and use it in GitHub Desktop.
// run on http://browser.primatelabs.com/mac-benchmarks
function findFirst(text) {
return $('td a').filter(function(i, el){ return $(el).text().indexOf(text) > -1 }).eq(0).closest('tr');
}
var mine = findFirst('MacBook Pro (17-inch Early 2011)');
var topMbp = findFirst('MacBook Pro');
$('tbody tr').hide().eq(0).show();
mine.show();
topMbp.show();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment