Last active
December 15, 2015 03:39
-
-
Save kangax/5195536 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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