Last active
December 26, 2016 09:55
This file contains 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
//load jquery first | |
var jq = document.createElement('script'); | |
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"; | |
// how to use :> | |
// open 'les connaissez-vous' section | |
//and past the code below into the consol | |
// PS : change the tag in line 22 to suit your needs | |
String.prototype.containsAny = function(array) { | |
var that = this; | |
var result = false; | |
array.forEach(function(el,index,arr){ | |
if((' ' + that.toLowerCase() + ' ').indexOf(' ' + el + ' ') != -1){ | |
result = true; | |
} | |
}); | |
return result; | |
}; | |
$('.card-wrapper').each(function(index){ | |
var this_card = $(this); | |
var title = this_card.find('.content-actions-wrapper .content .profile-info .headline span').html(); | |
//in this section add TAG of target fiend that you want to add | |
var keywords = ['rh','hr','drh','hrd','recrutement','ceo','recruitment', | |
'recruiter','directeur','founder','ressources humaines', | |
'human resources','chef de projet','project manager']; | |
if(title != undefined && title.containsAny(keywords)){ | |
console.log('got one ' + title); | |
this_card.find('.bt-request-buffed').click(); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment