Professional Documents
Culture Documents
Skip-Short-Link Script
Skip-Short-Link Script
document.onreadystatechange = function () {
decode();
};
function decode(){
$('a').each(function(){
var aaa = this.href;
var aab = decodeURIComponent(aaa.toString());
var cp1 = aab.includes('aHR0');
var cp2 = aab.includes('http');
if (cp1 == true){
try {
var bba = aab.split("aHR0")[0];
var bbb = aab.split(bba)[1];
var bbc = bbb.split(/[^A-Za-z0-9_.:/\\-]/g)[0];
var bbd = atob(bbc);
var bbe = bbd.replace(/([_=:;&\-\/\.\?\d\w]+(\d|\w))/g,'');
var bbf = bbd.replace(bbe,'');
$(this).attr("href", bbf);
}catch(err) {
$(this).attr("href", aaa);
}
}
});
}