/*
* @title My Bookmarklet
* @description find rel=shortlink practice
* @include http://*
* @license MIT License
* @require
*/
(function(){
var l=document.getElementsByTagName('link');
for (var i=0;i<l.length;++i){
if(l[i].hasAttribute('rel')&&l[i].getAttribute('rel').toLowerCase()=='shortlink'){
var sl=encodeURIComponent(l[i].href);
break;
}
}
if(sl) window.location.href='https://twitter.com/?status='+encodeURIComponent(document.title)+'%20'+sl;
})()