title: How to add Linkedin connections in the "People you may know" section faster with the help of a script?
body: <p>I'd like to ask why this code isn't working on Linkedin in this page <a href="https://www.linkedin.com/people/pymk/hub" rel="nofollow">https://www.linkedin.com/people/pymk/hub</a> using the browser Console </p>
  
  <pre><code>setInterval(function() { var connectBtns = document.getElementsByClassName(‘bt-request-buffed’);
  for(var i =0; i &lt; connectBtns.length; i++) { console.log(connectBtns[i].parentNode.children[0].children[1].children[0].children[0].textContent);
  connectBtns[i].click()}}, 500);
  </code></pre>
  
  <p>Is it because of the change in the class name? Since the class name has been changed from "bt-request-buffed" to "bt-request-buffed buffed-blue-bkg-1"</p>
  
  <p>I have been using this recently before I found the first code </p>
  
  <pre><code>javascript:var inputs = document.getElementsByClassName('bt-request-buffed buffed-blue-bkg-1'); 
  for(var i=0;i&lt;inputs.length;i++) 
  { inputs[i].click(); }
  </code></pre>
  
  <p>But I hate the fact that I have to scroll until there is nothing pops so that I can apply the code into the address bar and let the code do the work so I tried the first code instead but it isn't working</p>
  
  <p>I would also really appreciate it if you could help me create a code that automatically clicks on the Connect button until the very bottom of the page without scrolling and stuffs! I only started learning to code recently so.... Please help and thanks ahead!</p>