Code:
javascript:
var a="https://tinyurl.com/create.php?url=";
var b=location.host;
var c=location.pathname+location.search;
if (b==="")
{
alert("invalid response");
}
else if (b===" ")
{
alert("invalid response");
}
else if (b!=null)
{
open(a+b+c);
}
Bookmarklet:
javascript:var a="https://tinyurl.com/create.php?url=";var b=location.host;var c=location.pathname+location.search;if (b===""){alert("invalid response");}else if (b===" "){alert("invalid response");}else if (b!=null){open(a+b+c);}