SaveText.Ru

Без имени
  1. var buttons = document.getElementsByTagName('button');
  2.  
  3. for(var i = 0; i < buttons.length; i++){
  4.  
  5. var thisButton = buttons[i]; // element
  6.  
  7. if(thisButton.id.includes("accept_request")){
  8.  
  9. thisButton.click()
  10.  
  11. }
  12.  
  13. }

Share with your friends:

Print