Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
559 views
in Technique[技术] by (71.8m points)

javascript - 在linkedin高级搜索页面上创建自动连接(Creating an auto connect on linkedin advanced search page)

I'm looking for a way to auto connect to people found via the LinkedIn advanced search function.(我正在寻找一种自动与通过LinkedIn高级搜索功能找到的人建立联系的方法。)

There's plenty of information on doing this from the 'people you may know' page but I can only find the code below that is meant to work on the advanced search page, but doesn't.(“您可能认识的人”页面上有很多有关此操作的信息,但是我只能在下面找到可以在高级搜索页面上使用的代码,但没有。) Any ideas?(有任何想法吗?) setInterval(function () {var x = $(‘.primary-action-button’);for (var i = 0; i < x.length; i++){if(x[i].innerHTML == “Connect”) {x[i].click()}}var y = $(‘a.page-link’);y[y.length?—?1].click();}, 1000)   ask by Paul Coombes translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

There are a few illegal tokens in the code such as ',',“,” as well as the minus sign which are not the ones used for parsing JavaScript.(代码中有一些非法标记,例如',',“,”以及减号并非用于解析JavaScript的标记。)

They should be replaced with ',',",",- , respectively.(它们应分别用',',",",-代替。) This problem usually happens when you copy text from a PDF or something which is not in pure text format.(当您从PDF或非纯文本格式的文本中复制文本时,通常会发生此问题。) setInterval(function () { var x = $('.primary-action-button'); for (var i = 0; i < x.length; i++){ if(x[i].innerHTML == "Connect") { x[i].click() } } var y = $('a.page-link'); y[y.length - 1].click(); }, 1000)

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...