Last active
January 12, 2020 06:24
-
-
Save jonarddoci/1b4077488272fb4cd169f59d8741bf95 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var invitations=0; | |
$(".mn-person-info").each(function(index, el){ | |
var occupation = $($(el).find(".mn-person-info__occupation--card-layout")).text() | |
expr = /(software|engineer|develop|recruit|web|programmer|phd|master|msc|ceo|cto|hr|hire|hiring)/i; // case insensitive | |
var shouldAdd = expr.test(occupation); | |
if(shouldAdd){ | |
console.log(occupation + " matches your filters "+expr); | |
$(el).parent().find("[data-control-name='invite']").click(); | |
console.log(invitations++); | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment