forked from ohsusannamarie/random-LinkedIn-tools
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfacebook_to_LinkedIn_search_bookmarklet.txt
1 lines (1 loc) · 1.22 KB
/
facebook_to_LinkedIn_search_bookmarklet.txt
1
javascript:(function()%7Bfunction grouped(e%2C n)%7B if(e !%3D null)%7B return e%5Bn%5D%3B %7Delse%7B return ''%3B %7D %7D function switcheroo()%7B var regXProfName %3D %2F%5Cb%5Ba-zA-Z%5D*%5CS%2B%5Ba-zA-Z%5D*%2Fg%3B var regXjunker %3D %2F%5Cd%7CSee More%7Creplie%7Cdiv %7Cshow older%7CView Details%7Cactivity log%7CCreate%7C%5Cbnew%5Cb%7Cfriend%2Fig%3B var fullnm %3D grouped(%2F(%5Cw%2B.%2B%3F)(%3F%3A%24%7C<)%2F.exec(this.innerHTML)%2C 1)%3B var nameMatcher %3D fullnm.match(regXProfName)%3B if(nameMatcher !%3D null %26 regXjunker.test(fullnm) %3D%3D%3D false)%7B if(nameMatcher.length > 1 %26%26 nameMatcher.length < 4) %7B var fn %3D grouped(%2F(%5E%5Cw*%5CS%2B%5Cw*)%5Cs%2F.exec(fullnm)%2C 1)%3B var ln %3D grouped(%2F%5Cs%2B(%5Cw*%5CS%2B%5Cw*)%24%2F.exec(fullnm)%2C 1)%3B var newlink %3D 'https%3A%2F%2Fwww.linkedin.com%2Fsearch%2Fresults%2Fpeople%2F%3Fkeywords%3D%26firstName%3D' %2B fn %2B '%26lastName%3D' %2B ln%3B this.href %3D newlink%3B this.style.color %3D "green"%3B this.style.fontSize %3D "1.15em"%3B this.style.transition %3D "all 466ms ease-in-out"%3B %7D %7D %7D var aychRef %3D document.getElementsByTagName("a")%3B Array.from(aychRef).forEach(element %3D> %7B element.addEventListener('mouseover'%2C switcheroo)%3B %7D)%3B%7D)()