Skip to content

Instantly share code, notes, and snippets.

@pedropapa
Created December 22, 2015 12:33
Show Gist options
  • Save pedropapa/86add44915e3cd13f199 to your computer and use it in GitHub Desktop.
Save pedropapa/86add44915e3cd13f199 to your computer and use it in GitHub Desktop.
Pesquisa domínios com 3 letras disponíveis no registro.br
// Deve ser executado no site www.registro.br
var $http = angular.element(document.body).injector().get('$http');
function verificar() {
var domain = Math.random().toString(36).replace(/[^a-z]+/g, '').substr(0, 3) + '.com.br';
$http.get("/cgi-bin/avail/?qr="+domain).success(function(data){
if(data.available) {
console.log(domain + ' está disponível para registro');
}
});
};
setInterval(verificar, 100);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment