Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Open your page, click on "Invite more connections" and a dialog will open, 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:
- var stop = false;
- function f() {
- batch.each(function(_, e){ if ($(e).children('input').length && !$(e).children('input').is(':disabled')) setTimeout(function (){ e.click() }, 50); else {
- stop = true;
- return false;
- }}).promise().done(function (){
- if (stop) return;
- batch = batch.last();
- list[0].scrollTo(0, list[0].scrollHeight);
- setTimeout(function w(){
- if (!list.find('.artdeco-loader').length) {
- batch = batch.nextAll(q);
- if (batch.length) f();
- } else setTimeout(w, 400);
- }, 500);
- });
- }
- var list = $('.invitee-picker__results-container'), q = '.invitee-picker-connections-result-item--can-invite:not(.invitee-picker-connections-result-item--is-disabled)', batch = list.find(q);
- f();
Add Comment
Please, Sign In to add comment