title: Creating an auto connect on linkedin advanced search page
body: <p>I'm looking for a way to auto connect to people found via the LinkedIn advanced search function. There's plenty of information on doing this from the 'people you may know' page but I can only find the code below that is meant to work on the advanced search page, but doesn't. Any ideas?</p>
  
  <pre><code>setInterval(function () {var x = $(‘.primary-action-button’);for (var i = 0; i &lt; x.length; i++){if(x[i].innerHTML == “Connect”) {x[i].click()}}var y = $(‘a.page-link’);y[y.length — 1].click();}, 1000)
  </code></pre>