Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // 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:
- jQuery.expr[':'].icontains = function(a, i, m) {
- return jQuery(a).text().toUpperCase().indexOf(m[3].toUpperCase()) >= 0;
- };
- var sel = '.discover-person-card__occupation:icontains("recruit"),.discover-person-card__occupation:icontains("talent")', last;
- function s() {
- window.scrollTo(0,document.body.scrollHeight);
- setTimeout(function w() { if ($('.discover-entity-list__loader').length) setTimeout(w, 200); else f() }, 200);
- }
- function f() {
- var selEl = last && last[0] ? last.parent().parent().parent().parent().parent().nextAll(sel) : $(sel);
- last = selEl.last();
- if (selEl.length) selEl.each(function(){
- var b = $(this).parent().parent().next().children('footer').children('button');
- if (b.children('span').text().trim() === 'Connect') b.click(); // This is for English interface language
- }).promise().done(s); else s();
- }
- f();
Add Comment
Please, Sign In to add comment