msep.shortener = {

      html: "",

      secondCheck: 0,
      
      options: {},
      
      init: function(options)
      {
            this.html = $(document.body).innerHTML;

            this.options = options;
      },

      shortenURLs: function()
      {
            var self = this;

            if (self.secondCheck == 0 || (self.secondCheck > 0 && self.html != $(document.body).innerHTML))
            {
                  self.secondCheck += 1;

                  self.html = $(document.body).innerHTML;

                  getByAttribute($(document.body), 'a', 'href', new RegExp("/profile/([^\/]+)")).each(function(el)
                  {
                        if (el.getAttribute('href').match(new RegExp(self.options.exceptions.replace("profile|", ""))) == null)
                        {
                              el.setAttribute('href', el.getAttribute('href').replace("/profile", ""));
                        }
                  });
            }

            this.shortenURLs.delay(500, this);
      }
};;
