Java Script Converte link do GoogleDrive para link direto. function ConverteLink(){ var Edit = document.getElementById('edit'); var Texto = Edit.value; if(Texto.substring(0, 32) != 'https://drive.google.com/file/d/'){ alert('Link Inválido!'); return; } var T = 'https://drive.google.com/file/d/'; var Inicio = T.length; var Fim = Texto.indexOf('/view?usp=sharing'); var ID = Texto.substring(Inicio, Fim); var NovoLink = 'https://docs.google.com/uc?export=download&id=' + ID; Edit.value = NovoLink; alert('Convertido!'); } Converter