well, you can extend the jQuery selector with
$(document).ready(function(){
$.extend($.expr[':'], {
AvantGardel: function(elem){
var $e = $(elem);
return( typeof $e.css('font-family') !== 'undefined' && $e.css('font-family') === 'AvantGardeITCbyBT-Bold' );
},
SansSerif: function(elem){
var $e = $(elem);
return( typeof $e.css('font-family') !== 'undefined' && $e.css('font-family') === 'sans-serif' );
}
});
});
and then call
$(':AvantGardel').hide();
or
$(':SansSerif').hide();
eg.
working example: http://jsbin.com/idova3/edit
jAndy source
share