Skip to content

Instantly share code, notes, and snippets.

@evo42
Last active February 20, 2019 18:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evo42/e18c2a2514996be45bdec545626035c9 to your computer and use it in GitHub Desktop.
Save evo42/e18c2a2514996be45bdec545626035c9 to your computer and use it in GitHub Desktop.
$('.accordion-description').each(function() {
$(this).click();
});
$('a.domain-search-more').each(function() {
$(this).click();
});
var available = [];
$('.domain-name').each(function() {
var d = $(this).attr('title'),
r = $(this).parent().parent().attr('data-status'),
u = 'http://' + d;
$(this).html('<a href="' + u + '">' + d + '</a>');
// registered // avail // avail-preregister // avail-sedo // reserved
if (r == 'avail') {
$(this).parent().parent().show();
available[d] = u;
// open in new tab
// window.open(u, '_blank');
} else {
$(this).parent().parent().hide();
}
});
console.log(available);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment