Skip to content

Instantly share code, notes, and snippets.

@lsd
Created April 13, 2013 23:46
Show Gist options
  • Save lsd/5380650 to your computer and use it in GitHub Desktop.
Save lsd/5380650 to your computer and use it in GitHub Desktop.
Display an overlay of available domains. Namecheap.com bulk "Domain Name Search" results page only.
/*Display an overlay of available domains. 01/13/2013 <http://github.com/lsd>*/
/*Namecheap.com bulk "Domain Name Search" results page only.*/
'use strict';
//var pre="Available Domains\n---\n",
var pre='',
style='z-index:9999;width:250px;height:100%;background:rgb(55,55,55);color:#ddd;font-size:16px;padding:5px;float:left;border:2px dashed #eee;position:fixed;font-family: Ubuntu, Verdana, Helvetica;';
none='empty results. is this is the namecheap.com search results page for BULK domains?',
px=" ",
sx="\n",
_d='<div style="margin:10px auto 10px 50%;left:0;top:0;position:fixed;z-index:9999999;"><pre id="availdomains" style="'+style+'";>'+none+'</pre></div>',
_y='',
$j=jQuery;
$('#availdomains').remove();
$j.each($j('.resultItem.avail th label'),function(_,s){_y+=px+jQuery(s).text()+sx;});
$j(_d).appendTo($j('body'));
$j('#availdomains').html(pre + _y + "\n");
// (or cdn)
// <script type="text/javascript" src="http://cdn.pwnjutsu.com/#todo-latest.min.js" />
// (or grab the minified)
// ;'use strict';var pre='',style='z-index:9999;width:250px;height:100%;background:rgb(55,55,55);color:#ddd;font-size:16px;padding:5px;float:left;border:2px dashed #eee;position:fixed;font-family: Ubuntu, Verdana, Helvetica;';none='empty results. is this is the namecheap.com search results page for BULK domains?',px=" ",sx="\n",_d='<div style="margin:10px auto 10px 50%;left:0;top:0;position:fixed;z-index:9999999;"><pre id="availdomains" style="'+style+'";>'+none+'</pre></div>',_y='',$j=jQuery;$('#availdomains').remove();$j.each($j('.resultItem.avail th label'),function(_,s){_y+=px+jQuery(s).text()+sx;});$j(_d).appendTo($j('body'));$j('#availdomains').html(pre+_y+"\n");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment