-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathAvature2Taleo.txt
1 lines (1 loc) · 1.89 KB
/
Avature2Taleo.txt
1
javascript:(function()%7Bvar reg %3D (elm%2C n) %3D> elm !%3D null %3F elm%5Bn%5D %3A ''%3Bvar cn %3D (ob%2C nm) %3D> ob.getElementsByClassName(nm)%3Bvar tn %3D (ob%2C nm) %3D> ob.getElementsByTagName(nm)%3Bvar gi %3D (ob%2C nm) %3D> ob.getElementById(nm)%3Bvar delay %3D (ms) %3D> new Promise(res %3D> setTimeout(res%2C ms))%3Bvar sourcerer %3D reg(%2F%5CS%2B%2F.exec(cn(document%2C 'crmui_usernamemenu_Menu_Name')%5B0%5D.innerText)%2C0)%3Basync function openTaleoRecord() %7Bvar showmore %3D await cn(document%2C 'uicore_CollapsibleList_buttonText')%5B0%5D%3Bif(%2FShow more%2Fi.test(showmore.innerText) %3D%3D%3D true)%7Bawait showmore.click()%3B%7Dvar taleoId %3D await reg(%2F(%3F<%3Dtaleo ID%5Cs*)%5Cd%2B%2Fi.exec(document.body.innerText.replace(%2F%5Cn%2Fg%2C ''))%2C 0)%3Bif (taleoId !%3D '') %7Bwindow.open('http%3A%2F%2Fcox.taleo.net%2Fenterprise%2Fpublicurl%2FviewProfile%3FcandidateNumber%3D' %2B taleoId)%3B%7D else %7Bawait noRecord()%3Bawait delay(1901)%3Bawait close()%3B%7D%7Dfunction noRecord() %7Bvar popContainer %3D document.createElement("div")%3Bdocument.body.appendChild(popContainer)%3BpopContainer.setAttribute("id"%2C "pop_TaleoRec")%3BpopContainer.style.display %3D "inline-block"%3BpopContainer.style.position %3D "fixed"%3BpopContainer.style.top %3D "20%25"%3BpopContainer.style.left %3D "50%25"%3BpopContainer.style.width %3D "20%25"%3BpopContainer.style.height %3D "11%25"%3BpopContainer.style.background %3D "lightgrey"%3BpopContainer.style.borderRadius %3D "1em"%3BpopContainer.style.padding %3D "3px"%3BpopContainer.style.zIndex %3D "10000"%3BpopContainer.style.textAlign %3D "center"%3BpopContainer.style.fontSize %3D "2em"%3BpopContainer.style.fontFamily %3D '"Courier New"%2C monospace'%3BpopContainer.innerText %3D 'Sorry%2C ' %2Bsourcerer%2B'.%5CnNo Taleo ID listed here.'%3B%7Dfunction close() %7Bdocument.body.removeChild(document.getElementById("pop_TaleoRec"))%3B%7DopenTaleoRecord()%7D)()