My script is broken with FF 31.0. 

It worked perfect a few weeks ago.

Please help.

Here is my code:


$('document').ready(function() {
    $(".bids").each(function() {
        var text = $(this).text();
        var regExp = /[0-9]+.(b|B)ids?/;
        
        if (regExp.test(text)) {
            var match = regExp.exec(text);
            var sNumBids = match[0].split(" ",1);
            var numBids = parseInt(sNumBids, 10);
              if(numBids > 0) {
                 $(this).closest('table').css("border","3px solid red");
                 $(this).closest('table').css("background-color","yellow");
             }
     
                //Steve's own Code Feb 19, 2013
        if(numBids > 5) {
                 $(this).closest('table').css("border","3px solid red");
                 $(this).closest('table').css("background-color","lime");
             }
            
            if(numBids > 10) {
                 $(this).closest('table').css("border","3px solid red");
                 $(this).closest('table').css("background-color","grey");
             }
            // end of Steve's code
 
            
            
            
 } 
        
            
            
    });

});

-- 
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/greasemonkey-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to