Skip to content

Instantly share code, notes, and snippets.

@1d10t
Last active October 22, 2019 08:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 1d10t/bd99865d6003b9a686ee68f1c44d9ff9 to your computer and use it in GitHub Desktop.
Save 1d10t/bd99865d6003b9a686ee68f1c44d9ff9 to your computer and use it in GitHub Desktop.
// 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&bcc=linkedin-sent-cv@yaglov.ru&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