MikiSoft

LinkedIn auto-connect with recruiters (updated, 7.9.2020)

Oct 8th, 2018 (edited)
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 1.15 KB | None | 0 0
  1. // Go to https://www.linkedin.com/mynetwork/, copy everything from official JQuery script (https://code.jquery.com/jquery-3.5.1.slim.min.js), paste it in developer console (open it up with right click on page and "Inspect element") and hit Enter, thereafter execute the following:
  2.  
  3. jQuery.expr[':'].icontains = function(a, i, m) {
  4.     return jQuery(a).text().toUpperCase().indexOf(m[3].toUpperCase()) >= 0;
  5. };
  6. var sel = '.discover-person-card__occupation:icontains("recruit"),.discover-person-card__occupation:icontains("talent")', last;
  7. function s() {
  8.     window.scrollTo(0,document.body.scrollHeight);
  9.     setTimeout(function w() { if ($('.discover-entity-list__loader').length) setTimeout(w, 200); else f() }, 200);
  10. }
  11. function f() {
  12.     var selEl = last && last[0] ? last.parent().parent().parent().parent().parent().nextAll(sel) : $(sel);
  13.     last = selEl.last();
  14.     if (selEl.length) selEl.each(function(){
  15.         var b = $(this).parent().parent().next().children('footer').children('button');
  16.         if (b.children('span').text().trim() === 'Connect') b.click(); // This is for English interface language
  17.     }).promise().done(s); else s();
  18. }
  19. f();
Add Comment
Please, Sign In to add comment