Advertisement
binjuhor

Auto click linkedIn

Jun 15th, 2018
1,117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. setInterval(function () {
  2.     jQuery('.mn-pymk-list__card').each(function () {
  3.         var button = jQuery(this).find('.button-secondary-small');
  4.         var friendName = jQuery(this).find('.pymk-card__name').text();
  5.         var toScroll = jQuery(document).height();
  6.         if (jQuery(button).length) {
  7.             if (!jQuery(button).hasClass('clicked')) {
  8.                 jQuery(button).click();
  9.                 console.log('Sent connect with ' + friendName.trim());
  10.                 jQuery(button).addClass('clicked');
  11.             }
  12.             if (jQuery(button).hasClass('clicked')) {
  13.                 jQuery("html, body").animate({ scrollTop: toScroll }, 0);
  14.                 jQuery(button).closest('li').remove();
  15.             }
  16.         }
  17.     })
  18. }, 5000);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement