Instantly share code, notes, and snippets.
document.domain
or
window.location.hostname.match(/\w*\.\w*$/gi)[0]