replace the $.browser(.webkit/ ...) deprecied by my idea

replace the $.browser(.webkit/ ...) deprecied by my idea

hi, i have a idea 

  1. $.browser = {extension : '', mozilla : false, webkit : false, khtml : false, opera : false, microsoft : false};

  2. if ($(body).css('-moz-user-select') !== undefined) {
  3.       $.browser.mozilla = true; 
  4.       $.browser.extension = "-moz-";
  5. }
  6. else if ($(body).css('-webkit-user-select') !== undefined) {
  7.       $.browser.webkit = true; 
  8.       $.browser.extension = "-webkit-";
  9. }
  10. else if ($(body).css('-khtml-user-select') !== undefined) {
  11.       $.browser.khtml = true; 
  12.       $.browser.extension = "-khtml-";
  13. }
  14. else if ($(body).css('-o-user-select') !== undefined) {
  15.       $.browser.opera = true; 
  16.       $.browser.extension = "-o-";
  17. }
  18. else if ($(body).css('-ms-user-select') !== undefined) {
  19.       $.browser.microsoft = true; 
  20.       $.browser.extension = "-ms-";
  21. }
my example, it's not perfect, but the idea is here