var group_chat_buttons = document.getElementsByClassName('_54k8 _52jg _56bs _26vk _56b_ _56bv'); for (i = 0; i < group_chat_buttons.length; ++i) setInterval(function() { group_chat_buttons[i].click(), }, 1000);