forked from ohsusannamarie/random-LinkedIn-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathli_2_wally_Avature.txt
1 lines (1 loc) · 2.59 KB
/
li_2_wally_Avature.txt
1
javascript:(function()%7Bvar%20curUrl%20%3D%20window.location.href%3Bvar%20li_basicX%20%3D%20%2Flinkedin.com%5C%2Fin%5C%2F%2Fi%3Bvar%20li_rX%20%3D%20%2Flinkedin.com%5C%2Frecruiter%5C%2Fprofile%2Fi%3Bvar%20indeedX%20%3D%20%2Findeed.com%5C%2Fresume%2Fi%3Bif(li_basicX.test(curUrl)%20%7C%7C%20li_rX.test(curUrl)%20%7C%7C%20indeedX.test(curUrl))%7Bif(li_rX.test(curUrl))%7Bvar%20fullName%20%3D%20document.getElementsByClassName('info-container')%5B0%5D.getElementsByClassName('searchable')%5B0%5D.innerText%3B%7Dif(li_basicX.test(curUrl))%7Bvar%20fullName%20%3D%20document.getElementsByClassName('pv-top-card-section__name')%5B0%5D.innerText%3B%7Dif(indeedX.test(curUrl))%7Bvar%20fullName%20%3D%20document.getElementsByClassName('rezemp-u-h2')%5B0%5D.innerText%3B%7Dfunction%20getName(type%2C%20fullname)%7Bfunction%20cleanName(fullname)%7Bvar%20regXcommaplus%20%3D%20new%20RegExp(%22%2C.%2B%22)%3Bvar%20regXjunk%20%20%3D%20new%20RegExp('%5C%5C(%7C%5C%5C)%7C%22%7C%5C%5Cs*%5C%5Cb%5BjJ%5D%5BrR%5D%5C%5Cb.*%7C%5C%5Cs*%5C%5Cb%5BsS%5D%5BrR%5D%5C%5Cb.*%7C%5C%5Cs*%5C%5CbIi%5C%5Cb.*%7C%5C%5Cs*%5C%5CbI%5BIi%5D%5BIi%5D%5C%5Cb.*%7C%5C%5Cs*%5C%5CbI%5BVv%5D%5C%5Cb.*%7C%5C%5Cs%2B%24'%2C%20'g')%3Bvar%20regXendDot%20%3D%20new%20RegExp(%22%5C%5C.%24%22)%3Breturn%20fullname.replace(regXcommaplus%2C%20%22%22).replace(regXjunk%2C%20%22%22).replace(regXendDot%2C%20%22%22)%3B%7Dfunction%20fixCase(fullname)%7Breturn%20fullname.replace(%2F%5Cw%5CS*%2Fg%2C%20function(txt)%7Breturn%20txt.charAt(0).toUpperCase()%20%2B%20txt.substr(1).toLowerCase()%3B%7D)%3B%7Dfunction%20getFirstName(fullname)%7Breturn%20%2F%5E%5Cw%2B%5C.%5Cs%2B%5Cw%2B(%3F%3D%5Cs)%7C%5E%5CS%2B(%3F%3D%5Cs)%2F.exec(cleanName(fullname)).toString()%3B%7Dfunction%20getLastName(fullname)%7Breturn%20%2F%5Cw*'%5Cw*%24%7C%5Cw*-%5Cw*%24%7C%5Cw%2B%24%2F.exec(cleanName(fullname)).toString()%3B%7Dif(type%20%3D%3D%20%22first%22)%7Breturn%20getFirstName(cleanName(fixCase(fullname)))%3B%7Dif(type%20%3D%3D%20%22last%22)%7Breturn%20getLastName(cleanName(fixCase(fullname)))%3B%7D%7Dvar%20first%20%3D%20getName('first'%2C%20fullName)%3Bvar%20last%20%3D%20getName('last'%2C%20fullName)%3Bvar%20inputName%20%3D%20first.toLowerCase()%2B'%20'%2Blast.toLowerCase()%3Bvar%20searchFullname%20%3D%20encodeURIComponent('%22'%20%2B%20inputName%20%2B%20'%22')%3Bvar%20peopleSeach%20%3D%20%60https%3A%2F%2Fwalmart.avature.net%2F%23People%2FId%3A1%2FFilters%3A%7B%2522entityTypeId%2522%3A2%2C%2522set%2522%3A%7B%2522filters%2522%3A%5B%7B%2522name%2522%3A%2522fullName%2522%2C%2522op%2522%3A%2522hasWord%2522%2C%2522value%2522%3A%24%7BsearchFullname%7D%7D%5D%2C%2522isAnd%2522%3Atrue%7D%7D%60%3Bwindow.open(peopleSeach)%3B%7D%7D)()