-
Notifications
You must be signed in to change notification settings - Fork 0
/
github-email
1 lines (1 loc) · 5.65 KB
/
github-email
1
javascript:(function()%7Basync function initGithubEmailFinder()%7Bconst reg %3D (o%2C n) %3D> (o %3F o%5Bn%5D %3A "")%3Bif(document.getElementById('pop_container')) document.getElementById('pop_container').outerHTML %3D ''%3Bfunction loadingElm() %7Bvar loaD %3D document.createElement("div")%3BloaD.setAttribute("id"%2C "loader-elm")%3Bdocument.body.appendChild(loaD)%3BloaD.style.top %3D "6%25"%3BloaD.style.left %3D "50%25"%3BloaD.style.position %3D "fixed"%3BloaD.style.zIndex %3D "10001"%3BloaD.innerHTML %3D'<svg version%3D"1.1" id%3D"Layer_1" x%3D"0px" y%3D"0px" width%3D"200px" height%3D"200px" viewBox%3D"0 0 24 30" style%3D"enable-background%3Anew 0 0 50 50%3B"> <rect x%3D"0" y%3D"10" width%3D"4" height%3D"0" fill%3D"%23333" opacity%3D"0.2"> <animate attributeName%3D"opacity" values%3D"0.2%3B 1%3B .2" begin%3D"0s" dur%3D"555ms" repeatCount%3D"indefinite" %2F> <animate attributeName%3D"height" values%3D"10%3B 20%3B 10" begin%3D"0s" dur%3D"555ms" repeatCount%3D"indefinite" %2F> <animate attributeName%3D"y"values%3D"10%3B 5%3B 10" begin%3D"0s" dur%3D"555ms" repeatCount%3D"indefinite" %2F> <%2Frect> <rect x%3D"8" y%3D"10" width%3D"4" height%3D"10" fill%3D"%23333" opacity%3D"0.2"> <animate attributeName%3D"opacity" values%3D"0.2%3B 1%3B .2" begin%3D"0.15s" dur%3D"555ms" repeatCount%3D"indefinite" %2F> <animate attributeName%3D"height" values%3D"10%3B 20%3B 10" begin%3D"0.15s" dur%3D"555ms" repeatCount%3D"indefinite" %2F> <animate attributeName%3D"y" values%3D"10%3B 5%3B 10" begin%3D"0.15s" dur%3D"555ms" repeatCount%3D"indefinite" %2F> <%2Frect> <rect x%3D"16" y%3D"10" width%3D"4" height%3D"10" fill%3D"%23333" opacity%3D"0.2"> <animate attributeName%3D"opacity" values%3D"0.2%3B 1%3B .2" begin%3D"0.3s" dur%3D"555ms" repeatCount%3D"indefinite" %2F> <animate attributeName%3D"height" values%3D"10%3B 20%3B 10" begin%3D"0.3s" dur%3D"555ms" repeatCount%3D"indefinite" %2F> <animate attributeName%3D"y" values%3D"10%3B 5%3B 10" begin%3D"0.3s" dur%3D"555ms" repeatCount%3D"indefinite" %2F> <%2Frect> <%2Fsvg>'%3B%7DloadingElm()%3Bfunction killLoader() %7Bdocument.body.removeChild(document.getElementById("loader-elm"))%3B%7Dasync function getProfile() %7Bvar res %3D await fetch(reg(%2F(<%3Dgithub%5C.com%5C%2F)%5Cw%2B%2F.exec(window.location.href)%2C0) %2B "%3Ftab%3Drepositories")%3Bvar text %3D await res.text()%3Bvar doc %3D new DOMParser().parseFromString(text%2C "text%2Fhtml")%3Bvar repos %3D Array.from(doc.getElementsByTagName('li')).filter(li%3D> li.getElementsByTagName('a')%3F.%5B0%5D%3F.getAttribute('itemprop') %3D%3D 'name codeRepository' %26%26 !%2FForked from%2F.test(li.innerText)).map(li%3D> li.getElementsByTagName('a')%3F.%5B0%5D.href)%3Bvar target_repos %3D Array.from(repos).map((href) %3D> href %2B "%2Fcommit%2Fmaster.patch")%3Bvar displayed_email %3D reg(%2F%5Cb%5B%5Cw%5C.%5C-%5C%2B%5D%2B%40%5B%5Cw%5C-%5D%2B%5C.%5Ba-zA-Z%5D%7B2%2C13%7D(%5C.%5Ba-zA-Z%5D%7B2%2C13%7D%7C%5Cb)%2Fi.exec(doc.body.innerText)%2C0)%3Bif(displayed_email)%7Breturn displayed_email%3B%7Delse%7Breturn checkEmailPatch(target_repos)%3B%7D%7Dasync function getPatches(link) %7Bvar res %3D await fetch(link)%3Bvar html %3D await res.text()%3Bvar email %3D reg(%2F%5Cb%5B%5Cw%5C.%5C-%5C%2B%5D%2B%40%5B%5Cw%5C-%5D%2B%5C.%5Ba-zA-Z%5D%7B2%2C13%7D(%5C.%5Ba-zA-Z%5D%7B2%2C13%7D%7C%5Cb)%2Fi.exec(html.replace(%2F%5Cw%2B%40users.noreply.github.com%2Fg%2C ""))%2C 0)%3Breturn email%3B%7Dasync function checkEmailPatch(repos) %7Bfor (i %3D 0%3B i < repos.length%3B i%2B%2B) %7Bvar email %3D await getPatches(repos%5Bi%5D)%3Bif (email !%3D "") %7Breturn email%3B%7D%7D%7Dconst email %3D await getProfile()%3BkillLoader()%3Bvar cDiv %3D document.createElement("div")%3BcDiv.setAttribute("id"%2C "pop_container")%3Bdocument.body.appendChild(cDiv)%3BcDiv.setAttribute("style"%2C "display%3A inline-block%3B position%3A fixed%3B top%3A 100px%3B left%3A 50%25%3B width%3A 20%25%3B height%3A 10%25%3B border%3A 1px solid transparent%3B background%3A transparent%3B padding%3A 3px%3B z-index%3A 10000%3B")%3Bvar clsBtn %3D document.createElement("button")%3BcDiv.appendChild(clsBtn)%3BclsBtn.setAttribute("id"%2C "btn_close")%3BclsBtn.setAttribute("style"%2C' background%3A transparent%3B height%3A 0px%3B width%3A 0px%3B display%3A inline-block%3B transform%3A rotate(45deg)%3B border-radius%3A 1em%3B padding%3A 0px%3B box-shadow%3A 0px%3B border%3A 0px%3B cursor%3A pointer%3B user-select%3A none%3B')%3BclsBtn.innerHTML %3D %60<svg style%3D"border-radius%3A 2em%3B height%3A 30px%3B width%3A 30px%3B" x%3D"0px" y%3D"0px" viewBox%3D"0 0 100 100"><g style%3D"transform%3A scale(1%2C 1)" stroke-width%3D"1" fill%3D"none" fill-rule%3D"evenodd" stroke-linecap%3D"round" stroke-linejoin%3D"round"><g transform%3D"translate(2%2C 2)" stroke%3D"%23e21212" stroke-width%3D"8"><path d%3D"M47.806834%2C19.6743435 L47.806834%2C77.2743435" transform%3D"translate(49%2C 50) rotate(0) translate(-49%2C -50) "%2F><path d%3D"M76.6237986%2C48.48 L19.0237986%2C48.48" transform%3D"translate(49%2C 50) rotate(0) translate(-49%2C -50) "%2F><%2Fg><%2Fg><%2Fsvg>%60%3BclsBtn.onclick %3D ()%3D> %7BcDiv.outerHTML %3D ''%7D%3Bvar textbox_1 %3D document.createElement("textarea")%3Btextbox_1.setAttribute('style'%2C'width%3A 102%25%3B background%3A %231c1c1c%3B color%3A %23ffffff%3B height%3A 100%25%3B padding%3A 6px%3B border%3A 1px solid %23293242%3B border-radius%3A 0.2em%3B')%3BcDiv.appendChild(textbox_1)%3Btextbox_1.value %3D %2F%40%2F.test(email) %26%26 %2Fusers.noreply.github.com%2F.test(email) %3D%3D%3D false %3F email %3A "no email found"%3Bif (%2F%40%2F.test(email) %26%26 %2Fusers.noreply.github.com%2F.test(email) %3D%3D%3D false) %7Btextbox_1.select()%3Bdocument.execCommand("copy")%3B%7D%7DinitGithubEmailFinder()%7D)()