Last active
August 29, 2015 14:06
-
-
Save beratdogan/3d5195a3cf3127b4e4e0 to your computer and use it in GitHub Desktop.
hipchat room private populator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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