Skip to content

Instantly share code, notes, and snippets.

@beratdogan
Last active August 29, 2015 14:06
Show Gist options
  • Save beratdogan/3d5195a3cf3127b4e4e0 to your computer and use it in GitHub Desktop.
Save beratdogan/3d5195a3cf3127b4e4e0 to your computer and use it in GitHub Desktop.
hipchat room private populator
function makeid()
{
var text = "";
var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
for( var i=0; i < 5; i++ )
text += possible.charAt(Math.floor(Math.random() * possible.length));
return text;
}
for (var i = 0; i < 10; i++) {
$('#create_room_button').trigger('click');
$('#new_chat_room_name').val(makeid());
$('#new_chat_private').trigger('click');
$('#submit_room_perms').trigger('click');
$('#submit_new_chat').trigger('click');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment