Last active
October 22, 2019 08:01
-
-
Save 1d10t/bd99865d6003b9a686ee68f1c44d9ff9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Every monday | |
// https://www.linkedin.com/search/results/content/?authorIndustry=%5B%22104%22%2C%22137%22%5D&facetSortBy=date_posted&keywords=php%20remote&origin=SORT_RESULTS&recency=past-week | |
[].map.call(document.querySelectorAll('button[data-control-name="commentary_expand"]'), e => e.click()) | |
var textNode, textNodes = document.evaluate( '//div[contains(@class,"feed-shared-text-view")]', document, null, XPathResult.ANY_TYPE, null ); | |
while (textNode = textNodes.iterateNext()) { | |
let text = textNode.textContent, m = text.match(/\b[a-z\d][a-z\d._-]*@[a-z\d._-]+[a-z\d]\b/i); | |
if(!m) continue; | |
var | |
url = 'https://mail.google.com/mail/u/0/?view=cm&fs=1&to=EMAIL&su=SUBJ&body=TEXT&[email protected]&tf=1', | |
name = (function findLi(n){ return n.tagName == 'LI' ? n : findLi(n.parentNode); })(textNode).querySelector('span.feed-shared-actor__name').innerText, | |
tr = { | |
EMAIL: `${name} <${m[0]}>`, | |
SUBJ: 'CV Full Stack Developer Remote PHP/JS', | |
TEXT: `Hi ${name}, | |
I hope u'r doing well. | |
I am a Software Web Developer with 10+ years of experience. | |
My main stack is PHP + JavaScript. | |
Let me describe my skills in actual technologies. | |
I worked with Yii framework, jQuery. | |
Familiar with Linux/Bash, Git, | |
little bit with React, Node.js, Three.js. | |
Eventually I looking for full-/part-time role. I want to start working remotely from Russia, but in feature I would not refuse relocation. | |
For more info look at my Linkedin profile | |
https://www.linkedin.com/in/sergey-yaglov-6120015a/ | |
Get PDF http://yaglov.ru/cv-en.pdf | |
Additionally to qualify my JS skill, here is a link to 1-hour writen script generated this email message | |
https://gist.github.com/1d10t/bd99865d6003b9a686ee68f1c44d9ff9 | |
Have a nice day, | |
Yours | |
> ${text.split("\n").join("\n > ")} | |
` | |
} | |
; | |
for(let k in tr){ | |
url = url.replace(k, encodeURIComponent(tr[k])); | |
} | |
if(confirm(`Write to ${name} ?`)) window.open(url); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment