Examples of the various built in options for lengthening the short urls.
$.longurlplease();
or
$.longurlplease({lengthenShortUrl: 'smart'});
$.longurlplease({lengthenShortUrl: 'href-only'});
$.longurlplease({lengthenShortUrl: 'full'});
$.longurlplease({lengthenShortUrl: 'text-and-title'});
function myContrivedCustomExpander(aTag, longurl) {
aTag.href = longurl;
if (longurl.length > 30)
aTag.innerHTML = longurl.substring(0,15) + '...' + longurl.substring(longurl.length-15, longurl.length )
else
aTag.innerHTML = longurl;
}
$.longurlplease({lengthenShortUrl: myContrivedCustomExpander });