Skip to main content
removed last part of the srcipt
Source Link
Kaveh
  • 201
  • 2
  • 6
// ==UserScript==
// @name           hex stack overflow rep
// @namespace      stackoverflow
// @description    Displays user's rep in hexadecimal on stack overflow
// @include       http://stackoverflow.com/*
// @include       http://meta.stackoverflow.com/*
// @include       http://superuser.com/*
// @include       http://meta.superuser.com/*
// @include       http://serverfault.com/*
// @include       http://meta.serverfault.com/*
// @include       http://askubuntu.com/*
// @include       http://meta.askubuntu.com/*
// @include       http://answers.onstartups.com/*
// @include       http://meta.answers.onstartups.com/*
// @include       http://nothingtoinstall.com/*
// @include       http://meta.nothingtoinstall.com/*
// @include       http://seasonedadvice.com/*
// @include       http://meta.seasonedadvice.com/*
// @include       http://crossvalidated.com/*
// @include       http://askdifferent.com/*
// @include       http://meta.crossvalidated.com/*
// @include       http://stackapps.com/*
// @include       http://*.stackexchange.com/*
// @exclude       http://chat.stackexchange.com/*
// @exclude       http://api.*.stackexchange.com/*
// @exclude       http://data.stackexchange.com/*
// @exclude       http://area51.stackexchange.com/*
// @author         Kip Robinson - http://stackoverflow.com/users/18511/kip
// ==/UserScript==

(function() {
  function with_jquery(f) {
    var script = document.createElement("script");
    script.type = "text/javascript";
    script.textContent = "(" + f.toString() + ")(jQuery)";
    document.body.appendChild(script);
  }; 

  with_jquery(function($) {
    $('.reputation-score').each(function() {
      var title = $(this).attr('title');
      var text = $(this).text();
      var rep = 1;
  
      if(text.indexOf('k') < 0) {
        rep = parseInt(text.replace(/,/g, ''));
      } else {
        rep = parseInt(title.replace(/\D/g, ''));
    
        //if no rep was in the tooltip, convert the truncated rep to hex
        if(isNaN(rep))
          rep = Math.round(1000 * parseFloat(text.replace(/[k,]/gi, '')));
      }

      if(rep >= 20000) $(this).text('20K+');       // 'Trusted'
      else if(rep >= 10000) $(this).text('10K+');  // 'Moderator'
      else if(rep >= 3000) $(this).text('3K+');    // 'Scope Definer' 'Closer'
      else if(rep >= 2000) $(this).text('2K+');    // 'Editor'
      else if(rep >= 1000) $(this).text('1K+');    // 'Expert'
      else if(rep >= 500) $(this).text('500+');    // 'Retagger'
      else if(rep >= 200) $(this).text('200+');    // 'Contributer'
      else if(rep >= 50) $(this).text('50+');      // 'Commentator'
      else if(rep >= 15) $(this).text('15+');      // 'Voter'
      else $(this).text('!');                      // 'New'

  //    if(rep >= 0x10000)
  //      $(this).css('font-family', 'Arial Narrow,' + $(this).css('font-family'));
    });
  });

})()
// ==UserScript==
// @name           hex stack overflow rep
// @namespace      stackoverflow
// @description    Displays user's rep in hexadecimal on stack overflow
// @include       http://stackoverflow.com/*
// @include       http://meta.stackoverflow.com/*
// @include       http://superuser.com/*
// @include       http://meta.superuser.com/*
// @include       http://serverfault.com/*
// @include       http://meta.serverfault.com/*
// @include       http://askubuntu.com/*
// @include       http://meta.askubuntu.com/*
// @include       http://answers.onstartups.com/*
// @include       http://meta.answers.onstartups.com/*
// @include       http://nothingtoinstall.com/*
// @include       http://meta.nothingtoinstall.com/*
// @include       http://seasonedadvice.com/*
// @include       http://meta.seasonedadvice.com/*
// @include       http://crossvalidated.com/*
// @include       http://askdifferent.com/*
// @include       http://meta.crossvalidated.com/*
// @include       http://stackapps.com/*
// @include       http://*.stackexchange.com/*
// @exclude       http://chat.stackexchange.com/*
// @exclude       http://api.*.stackexchange.com/*
// @exclude       http://data.stackexchange.com/*
// @exclude       http://area51.stackexchange.com/*
// @author         Kip Robinson - http://stackoverflow.com/users/18511/kip
// ==/UserScript==

(function() {
  function with_jquery(f) {
    var script = document.createElement("script");
    script.type = "text/javascript";
    script.textContent = "(" + f.toString() + ")(jQuery)";
    document.body.appendChild(script);
  }; 

  with_jquery(function($) {
    $('.reputation-score').each(function() {
      var title = $(this).attr('title');
      var text = $(this).text();
      var rep = 1;
  
      if(text.indexOf('k') < 0) {
        rep = parseInt(text.replace(/,/g, ''));
      } else {
        rep = parseInt(title.replace(/\D/g, ''));
    
        //if no rep was in the tooltip, convert the truncated rep to hex
        if(isNaN(rep))
          rep = Math.round(1000 * parseFloat(text.replace(/[k,]/gi, '')));
      }

      if(rep >= 20000) $(this).text('20K+');       // 'Trusted'
      else if(rep >= 10000) $(this).text('10K+');  // 'Moderator'
      else if(rep >= 3000) $(this).text('3K+');    // 'Scope Definer' 'Closer'
      else if(rep >= 2000) $(this).text('2K+');    // 'Editor'
      else if(rep >= 1000) $(this).text('1K+');    // 'Expert'
      else if(rep >= 500) $(this).text('500+');    // 'Retagger'
      else if(rep >= 200) $(this).text('200+');    // 'Contributer'
      else if(rep >= 50) $(this).text('50+');      // 'Commentator'
      else if(rep >= 15) $(this).text('15+');      // 'Voter'
      else $(this).text('!');                      // 'New'

      if(rep >= 0x10000)
        $(this).css('font-family', 'Arial Narrow,' + $(this).css('font-family'));
    });
  });

})()
// ==UserScript==
// @name           hex stack overflow rep
// @namespace      stackoverflow
// @description    Displays user's rep in hexadecimal on stack overflow
// @include       http://stackoverflow.com/*
// @include       http://meta.stackoverflow.com/*
// @include       http://superuser.com/*
// @include       http://meta.superuser.com/*
// @include       http://serverfault.com/*
// @include       http://meta.serverfault.com/*
// @include       http://askubuntu.com/*
// @include       http://meta.askubuntu.com/*
// @include       http://answers.onstartups.com/*
// @include       http://meta.answers.onstartups.com/*
// @include       http://nothingtoinstall.com/*
// @include       http://meta.nothingtoinstall.com/*
// @include       http://seasonedadvice.com/*
// @include       http://meta.seasonedadvice.com/*
// @include       http://crossvalidated.com/*
// @include       http://askdifferent.com/*
// @include       http://meta.crossvalidated.com/*
// @include       http://stackapps.com/*
// @include       http://*.stackexchange.com/*
// @exclude       http://chat.stackexchange.com/*
// @exclude       http://api.*.stackexchange.com/*
// @exclude       http://data.stackexchange.com/*
// @exclude       http://area51.stackexchange.com/*
// @author         Kip Robinson - http://stackoverflow.com/users/18511/kip
// ==/UserScript==

(function() {
  function with_jquery(f) {
    var script = document.createElement("script");
    script.type = "text/javascript";
    script.textContent = "(" + f.toString() + ")(jQuery)";
    document.body.appendChild(script);
  }; 

  with_jquery(function($) {
    $('.reputation-score').each(function() {
      var title = $(this).attr('title');
      var text = $(this).text();
      var rep = 1;
  
      if(text.indexOf('k') < 0) {
        rep = parseInt(text.replace(/,/g, ''));
      } else {
        rep = parseInt(title.replace(/\D/g, ''));
    
        //if no rep was in the tooltip, convert the truncated rep to hex
        if(isNaN(rep))
          rep = Math.round(1000 * parseFloat(text.replace(/[k,]/gi, '')));
      }

      if(rep >= 20000) $(this).text('20K+');       // 'Trusted'
      else if(rep >= 10000) $(this).text('10K+');  // 'Moderator'
      else if(rep >= 3000) $(this).text('3K+');    // 'Scope Definer' 'Closer'
      else if(rep >= 2000) $(this).text('2K+');    // 'Editor'
      else if(rep >= 1000) $(this).text('1K+');    // 'Expert'
      else if(rep >= 500) $(this).text('500+');    // 'Retagger'
      else if(rep >= 200) $(this).text('200+');    // 'Contributer'
      else if(rep >= 50) $(this).text('50+');      // 'Commentator'
      else if(rep >= 15) $(this).text('15+');      // 'Voter'
      else $(this).text('!');                      // 'New'

//    if(rep >= 0x10000)
//      $(this).css('font-family', 'Arial Narrow,' + $(this).css('font-family'));
    });
  });

})()
added 6 characters in body
Source Link
Kaveh
  • 201
  • 2
  • 6
// ==UserScript==
// @name           hex stack overflow rep
// @namespace      stackoverflow
// @description    Displays user's rep in hexadecimal on stack overflow
// @include       http://stackoverflow.com/*
// @include       http://meta.stackoverflow.com/*
// @include       http://superuser.com/*
// @include       http://meta.superuser.com/*
// @include       http://serverfault.com/*
// @include       http://meta.serverfault.com/*
// @include       http://askubuntu.com/*
// @include       http://meta.askubuntu.com/*
// @include       http://answers.onstartups.com/*
// @include       http://meta.answers.onstartups.com/*
// @include       http://nothingtoinstall.com/*
// @include       http://meta.nothingtoinstall.com/*
// @include       http://seasonedadvice.com/*
// @include       http://meta.seasonedadvice.com/*
// @include       http://crossvalidated.com/*
// @include       http://askdifferent.com/*
// @include       http://meta.crossvalidated.com/*
// @include       http://stackapps.com/*
// @include       http://*.stackexchange.com/*
// @exclude       http://chat.stackexchange.com/*
// @exclude       http://api.*.stackexchange.com/*
// @exclude       http://data.stackexchange.com/*
// @exclude       http://area51.stackexchange.com/*
// @author         Kip Robinson - http://stackoverflow.com/users/18511/kip
// ==/UserScript==

(function() {
  function with_jquery(f) {
    var script = document.createElement("script");
    script.type = "text/javascript";
    script.textContent = "(" + f.toString() + ")(jQuery)";
    document.body.appendChild(script);
  }; 

  with_jquery(function($) {
    $('.reputation-score').each(function() {
      var title = $(this).attr('title');
      var text = $(this).text();
      var rep = 1;
  
      if(text.indexOf('k') < 0) {
        rep = parseInt(text.replace(/,/g, ''));
      } else {
        rep = parseInt(title.replace(/\D/g, ''));
    
        //if no rep was in the tooltip, convert the truncated rep to hex
        if(isNaN(rep))
          rep = Math.round(1000 * parseFloat(text.replace(/[k,]/gi, '')));
      }

      if(rep >= 20000) $(this).text('20K+');       // 'Trusted'
      else if(rep >= 10000) $(this).text('10K+');  // 'Moderator'
      else if(rep >= 3000) $(this).text('3K+');    // 'Scope Definer' 'Closer'
      else if(rep >= 2000) $(this).text('2K+');    // 'Editor'
      else if(rep >= 1000) $(this).text('1K+');    // '''Expert'
      else if(rep >= 500) $(this).text('500+');    // 'Retagger'
      else if(rep >= 200) $(this).text('200+');    // 'Contributer'
      else if(rep >= 50) $(this).text('50+');      // 'Commentator'
      else if(rep >= 15) $(this).text('15+');      // 'Voter'
      else $(this).text('!');                      // 'New'

      if(rep >= 0x10000)
        $(this).css('font-family', 'Arial Narrow,' + $(this).css('font-family'));
    });
  });

})()
// ==UserScript==
// @name           hex stack overflow rep
// @namespace      stackoverflow
// @description    Displays user's rep in hexadecimal on stack overflow
// @include       http://stackoverflow.com/*
// @include       http://meta.stackoverflow.com/*
// @include       http://superuser.com/*
// @include       http://meta.superuser.com/*
// @include       http://serverfault.com/*
// @include       http://meta.serverfault.com/*
// @include       http://askubuntu.com/*
// @include       http://meta.askubuntu.com/*
// @include       http://answers.onstartups.com/*
// @include       http://meta.answers.onstartups.com/*
// @include       http://nothingtoinstall.com/*
// @include       http://meta.nothingtoinstall.com/*
// @include       http://seasonedadvice.com/*
// @include       http://meta.seasonedadvice.com/*
// @include       http://crossvalidated.com/*
// @include       http://askdifferent.com/*
// @include       http://meta.crossvalidated.com/*
// @include       http://stackapps.com/*
// @include       http://*.stackexchange.com/*
// @exclude       http://chat.stackexchange.com/*
// @exclude       http://api.*.stackexchange.com/*
// @exclude       http://data.stackexchange.com/*
// @exclude       http://area51.stackexchange.com/*
// @author         Kip Robinson - http://stackoverflow.com/users/18511/kip
// ==/UserScript==

(function() {
  function with_jquery(f) {
    var script = document.createElement("script");
    script.type = "text/javascript";
    script.textContent = "(" + f.toString() + ")(jQuery)";
    document.body.appendChild(script);
  }; 

  with_jquery(function($) {
    $('.reputation-score').each(function() {
      var title = $(this).attr('title');
      var text = $(this).text();
      var rep = 1;
  
      if(text.indexOf('k') < 0) {
        rep = parseInt(text.replace(/,/g, ''));
      } else {
        rep = parseInt(title.replace(/\D/g, ''));
    
        //if no rep was in the tooltip, convert the truncated rep to hex
        if(isNaN(rep))
          rep = Math.round(1000 * parseFloat(text.replace(/[k,]/gi, '')));
      }

      if(rep >= 20000) $(this).text('20K+');       // 'Trusted'
      else if(rep >= 10000) $(this).text('10K+');  // 'Moderator'
      else if(rep >= 3000) $(this).text('3K+');    // 'Scope Definer' 'Closer'
      else if(rep >= 2000) $(this).text('2K+');    // 'Editor'
      else if(rep >= 1000) $(this).text('1K+');    // ''
      else if(rep >= 500) $(this).text('500+');    // 'Retagger'
      else if(rep >= 200) $(this).text('200+');    // 'Contributer'
      else if(rep >= 50) $(this).text('50+');      // 'Commentator'
      else if(rep >= 15) $(this).text('15+');      // 'Voter'
      else $(this).text('!');                      // 'New'

      if(rep >= 0x10000)
        $(this).css('font-family', 'Arial Narrow,' + $(this).css('font-family'));
    });
  });

})()
// ==UserScript==
// @name           hex stack overflow rep
// @namespace      stackoverflow
// @description    Displays user's rep in hexadecimal on stack overflow
// @include       http://stackoverflow.com/*
// @include       http://meta.stackoverflow.com/*
// @include       http://superuser.com/*
// @include       http://meta.superuser.com/*
// @include       http://serverfault.com/*
// @include       http://meta.serverfault.com/*
// @include       http://askubuntu.com/*
// @include       http://meta.askubuntu.com/*
// @include       http://answers.onstartups.com/*
// @include       http://meta.answers.onstartups.com/*
// @include       http://nothingtoinstall.com/*
// @include       http://meta.nothingtoinstall.com/*
// @include       http://seasonedadvice.com/*
// @include       http://meta.seasonedadvice.com/*
// @include       http://crossvalidated.com/*
// @include       http://askdifferent.com/*
// @include       http://meta.crossvalidated.com/*
// @include       http://stackapps.com/*
// @include       http://*.stackexchange.com/*
// @exclude       http://chat.stackexchange.com/*
// @exclude       http://api.*.stackexchange.com/*
// @exclude       http://data.stackexchange.com/*
// @exclude       http://area51.stackexchange.com/*
// @author         Kip Robinson - http://stackoverflow.com/users/18511/kip
// ==/UserScript==

(function() {
  function with_jquery(f) {
    var script = document.createElement("script");
    script.type = "text/javascript";
    script.textContent = "(" + f.toString() + ")(jQuery)";
    document.body.appendChild(script);
  }; 

  with_jquery(function($) {
    $('.reputation-score').each(function() {
      var title = $(this).attr('title');
      var text = $(this).text();
      var rep = 1;
  
      if(text.indexOf('k') < 0) {
        rep = parseInt(text.replace(/,/g, ''));
      } else {
        rep = parseInt(title.replace(/\D/g, ''));
    
        //if no rep was in the tooltip, convert the truncated rep to hex
        if(isNaN(rep))
          rep = Math.round(1000 * parseFloat(text.replace(/[k,]/gi, '')));
      }

      if(rep >= 20000) $(this).text('20K+');       // 'Trusted'
      else if(rep >= 10000) $(this).text('10K+');  // 'Moderator'
      else if(rep >= 3000) $(this).text('3K+');    // 'Scope Definer' 'Closer'
      else if(rep >= 2000) $(this).text('2K+');    // 'Editor'
      else if(rep >= 1000) $(this).text('1K+');    // 'Expert'
      else if(rep >= 500) $(this).text('500+');    // 'Retagger'
      else if(rep >= 200) $(this).text('200+');    // 'Contributer'
      else if(rep >= 50) $(this).text('50+');      // 'Commentator'
      else if(rep >= 15) $(this).text('15+');      // 'Voter'
      else $(this).text('!');                      // 'New'

      if(rep >= 0x10000)
        $(this).css('font-family', 'Arial Narrow,' + $(this).css('font-family'));
    });
  });

})()
added 250 characters in body
Source Link
Kaveh
  • 201
  • 2
  • 6
// ==UserScript==
// @name           hex stack overflow rep
// @namespace      stackoverflow
// @description    Displays user's rep in hexadecimal on stack overflow
// @include       http://stackoverflow.com/*
// @include       http://meta.stackoverflow.com/*
// @include       http://superuser.com/*
// @include       http://meta.superuser.com/*
// @include       http://serverfault.com/*
// @include       http://meta.serverfault.com/*
// @include       http://askubuntu.com/*
// @include       http://meta.askubuntu.com/*
// @include       http://answers.onstartups.com/*
// @include       http://meta.answers.onstartups.com/*
// @include       http://nothingtoinstall.com/*
// @include       http://meta.nothingtoinstall.com/*
// @include       http://seasonedadvice.com/*
// @include       http://meta.seasonedadvice.com/*
// @include       http://crossvalidated.com/*
// @include       http://askdifferent.com/*
// @include       http://meta.crossvalidated.com/*
// @include       http://stackapps.com/*
// @include       http://*.stackexchange.com/*
// @exclude       http://chat.stackexchange.com/*
// @exclude       http://api.*.stackexchange.com/*
// @exclude       http://data.stackexchange.com/*
// @exclude       http://area51.stackexchange.com/*
// @author         Kip Robinson - http://stackoverflow.com/users/18511/kip
// ==/UserScript==

(function() {
  function with_jquery(f) {
    var script = document.createElement("script");
    script.type = "text/javascript";
    script.textContent = "(" + f.toString() + ")(jQuery)";
    document.body.appendChild(script);
  }; 

  with_jquery(function($) {
    $('.reputation-score').each(function() {
      var title = $(this).attr('title');
      var text = $(this).text();
      var rep = 1;
  
      if(text.indexOf('k') < 0) {
        rep = parseInt(text.replace(/,/g, ''));
      } else {
        rep = parseInt(title.replace(/\D/g, ''));
    
        //if no rep was in the tooltip, convert the truncated rep to hex
        if(isNaN(rep))
          rep = Math.round(1000 * parseFloat(text.replace(/[k,]/gi, '')));
      }

      if(rep >= 20000) $(this).text('20K+');       // 'Trusted'
      else if(rep >= 10000) $(this).text('10K+');  // 'Moderator'
      else if(rep >= 3000) $(this).text('3K+');    // 'Scope Definer' 'Closer'
      else if(rep >= 2000) $(this).text('2K+');    // 'Editor'
      else if(rep >= 1000) $(this).text('1K+');    // ''
      else if(rep >= 500) $(this).text('500+');    // 'Retagger'
      else if(rep >= 200) $(this).text('200+');    // 'Contributer'
      else if(rep >= 50) $(this).text('50+');      // 'Commentator'
      else if(rep >= 15) $(this).text('15+');      // 'Voter'
      else $(this).text('!');                      // 'New'

      if(rep >= 0x10000)
        $(this).css('font-family', 'Arial Narrow,' + $(this).css('font-family'));
    });
  });

})()
// ==UserScript==
// @name           hex stack overflow rep
// @namespace      stackoverflow
// @description    Displays user's rep in hexadecimal on stack overflow
// @include       http://stackoverflow.com/*
// @include       http://meta.stackoverflow.com/*
// @include       http://superuser.com/*
// @include       http://meta.superuser.com/*
// @include       http://serverfault.com/*
// @include       http://meta.serverfault.com/*
// @include       http://askubuntu.com/*
// @include       http://meta.askubuntu.com/*
// @include       http://answers.onstartups.com/*
// @include       http://meta.answers.onstartups.com/*
// @include       http://nothingtoinstall.com/*
// @include       http://meta.nothingtoinstall.com/*
// @include       http://seasonedadvice.com/*
// @include       http://meta.seasonedadvice.com/*
// @include       http://crossvalidated.com/*
// @include       http://askdifferent.com/*
// @include       http://meta.crossvalidated.com/*
// @include       http://stackapps.com/*
// @include       http://*.stackexchange.com/*
// @exclude       http://chat.stackexchange.com/*
// @exclude       http://api.*.stackexchange.com/*
// @exclude       http://data.stackexchange.com/*
// @exclude       http://area51.stackexchange.com/*
// @author         Kip Robinson - http://stackoverflow.com/users/18511/kip
// ==/UserScript==

(function() {
  function with_jquery(f) {
    var script = document.createElement("script");
    script.type = "text/javascript";
    script.textContent = "(" + f.toString() + ")(jQuery)";
    document.body.appendChild(script);
  }; 

  with_jquery(function($) {
    $('.reputation-score').each(function() {
      var title = $(this).attr('title');
      var text = $(this).text();
      var rep = 1;
  
      if(text.indexOf('k') < 0) {
        rep = parseInt(text.replace(/,/g, ''));
      } else {
        rep = parseInt(title.replace(/\D/g, ''));
    
        //if no rep was in the tooltip, convert the truncated rep to hex
        if(isNaN(rep))
          rep = Math.round(1000 * parseFloat(text.replace(/[k,]/gi, '')));
      }

      if(rep >= 10000) $(this).text('10K+');
      else if(rep >= 3000) $(this).text('3K+');
      else if(rep >= 2000) $(this).text('2K+');
      else if(rep >= 1000) $(this).text('1K+');
      else if(rep >= 500) $(this).text('500+');
      else if(rep >= 200) $(this).text('200+');
      else if(rep >= 50) $(this).text('50+');
      else if(rep >= 15) $(this).text('15+');
      else $(this).text('!');

      if(rep >= 0x10000)
        $(this).css('font-family', 'Arial Narrow,' + $(this).css('font-family'));
    });
  });

})()
// ==UserScript==
// @name           hex stack overflow rep
// @namespace      stackoverflow
// @description    Displays user's rep in hexadecimal on stack overflow
// @include       http://stackoverflow.com/*
// @include       http://meta.stackoverflow.com/*
// @include       http://superuser.com/*
// @include       http://meta.superuser.com/*
// @include       http://serverfault.com/*
// @include       http://meta.serverfault.com/*
// @include       http://askubuntu.com/*
// @include       http://meta.askubuntu.com/*
// @include       http://answers.onstartups.com/*
// @include       http://meta.answers.onstartups.com/*
// @include       http://nothingtoinstall.com/*
// @include       http://meta.nothingtoinstall.com/*
// @include       http://seasonedadvice.com/*
// @include       http://meta.seasonedadvice.com/*
// @include       http://crossvalidated.com/*
// @include       http://askdifferent.com/*
// @include       http://meta.crossvalidated.com/*
// @include       http://stackapps.com/*
// @include       http://*.stackexchange.com/*
// @exclude       http://chat.stackexchange.com/*
// @exclude       http://api.*.stackexchange.com/*
// @exclude       http://data.stackexchange.com/*
// @exclude       http://area51.stackexchange.com/*
// @author         Kip Robinson - http://stackoverflow.com/users/18511/kip
// ==/UserScript==

(function() {
  function with_jquery(f) {
    var script = document.createElement("script");
    script.type = "text/javascript";
    script.textContent = "(" + f.toString() + ")(jQuery)";
    document.body.appendChild(script);
  }; 

  with_jquery(function($) {
    $('.reputation-score').each(function() {
      var title = $(this).attr('title');
      var text = $(this).text();
      var rep = 1;
  
      if(text.indexOf('k') < 0) {
        rep = parseInt(text.replace(/,/g, ''));
      } else {
        rep = parseInt(title.replace(/\D/g, ''));
    
        //if no rep was in the tooltip, convert the truncated rep to hex
        if(isNaN(rep))
          rep = Math.round(1000 * parseFloat(text.replace(/[k,]/gi, '')));
      }

      if(rep >= 20000) $(this).text('20K+');       // 'Trusted'
      else if(rep >= 10000) $(this).text('10K+');  // 'Moderator'
      else if(rep >= 3000) $(this).text('3K+');    // 'Scope Definer' 'Closer'
      else if(rep >= 2000) $(this).text('2K+');    // 'Editor'
      else if(rep >= 1000) $(this).text('1K+');    // ''
      else if(rep >= 500) $(this).text('500+');    // 'Retagger'
      else if(rep >= 200) $(this).text('200+');    // 'Contributer'
      else if(rep >= 50) $(this).text('50+');      // 'Commentator'
      else if(rep >= 15) $(this).text('15+');      // 'Voter'
      else $(this).text('!');                      // 'New'

      if(rep >= 0x10000)
        $(this).css('font-family', 'Arial Narrow,' + $(this).css('font-family'));
    });
  });

})()
Source Link
Kaveh
  • 201
  • 2
  • 6
Loading