Created
December 22, 2015 12:33
-
-
Save pedropapa/86add44915e3cd13f199 to your computer and use it in GitHub Desktop.
Pesquisa domínios com 3 letras disponíveis no registro.br
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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