Add all domains buttons
Extracting JS as a jQuery plugin