Другая версия, тоже самое, единственное отличие в том, что иногда для меня selectorText не определяется
var rules = document.styleSheets[0].rules || document.styleSheets[0].cssRules;
for (var i in rules)
{
if (typeof rules[i]['selectorText'] != 'undefined' && rules[i]['selectorText'].indexOf("fbconnect_button") >= 0)
{
alert('found!!');
}
}