Olá amigos, bom, esse script que eu encontrei na internet inverte a url, mas eu gostaria de que ele não invertesse, algum de vocês poderia me ajudar?
Código:
var domainuc='openload.co, ok.ru, videoapi.my.mail.ru, katfile.com, mega.nz, brfiles.com, salefiles.com, secureupload.eu, mega.co.nz, uploaded.net';
//MUDAR AKI...
var urluc='http://www.meuSite.com/ss.php?url='+"";
//MUDAR AKI...
var domainsuc='linkbux, imagegravy, adbrite, clicksor, downlivre';
function cuc(){
var linkuc=document.getElementsByTagName("a");
try{
var locuc=(""+top.location.href).replace("http://","").replace("https://","").replace("www.","");
}catch(e){
var locuc=(""+document.location.href).replace("http://","").replace("https://","").replace("www.","");
}
for(i=0;i<linkuc.length;i++){
domain_urluc=(""+linkuc.href).replace(/^\s+/g,"").replace(/\s+$/g,"").replace("http://","").replace("https://","");
if(duc(linkuc.href)&&(((" "+linkuc.href).indexOf(locuc)<=0||(" "+linkuc.href).indexOf("http")<=0)||(" "+linkuc.href).lastIndexOf("http:")>3)&&(" "+linkuc.href).indexOf("script:")<=0&&(" "+linkuc.href).indexOf("#")!=1&&(" "+linkuc.href).indexOf("mailto:")<=0&&(" "+linkuc.href).indexOf("file:")<=0&&(" "+linkuc.href).indexOf("#exit")<=0&&!(!isNaN(parseInt(domain_urluc.substr(0,1)))&&(!isNaN(parseInt(domain_urluc.substr(0,2)))||domain_urluc.substr(0,2)=="."))){
linkuc.target="_blank";
var inverte = linkuc.href.match(/[^|]/gi).reverse().join("");
linkuc.href=urluc+inverte;
}
}
}
function duc(urluc){
if(""+domainuc!="undefined"&&domainuc!=""&&domainuc.replace(/\s/g,"")!=""&&urluc!=""){
if((" "+domainuc).indexOf(",")>0){
params_to_skip=domainuc.split(",");
}else{
params_to_skip=new Array(domainuc);
}for(s=0;s<params_to_skip.length;s++){
if((" "+urluc.toLowerCase()).indexOf(params_to_skip.toLowerCase())>0){
if(""+domainsuc!="undefined"&&domainsuc!=""&&domainsuc.replace(/\s/g,"")!=""&&urluc!=""){
if((" "+domainsuc).indexOf(",")>0){
params_to_skip=domainsuc.split(",");
}else{params_to_skip=new Array(domainsuc);}
for(s=0;s<params_to_skip.length;s++){
if((" "+urluc.toLowerCase()).indexOf(params_to_skip.toLowerCase())>0){
return false;
break;
};
}return true;
}else{
return true;
}
};
}
return false;
}else{
return false;
}
}/if(""+window.onload==""||""+window.onload=="null"){
window.onload=cuc;
}else{
var tout=window.setTimeout("cuc(); clearTimeout(tout)",1);
};