Skip to content

Instantly share code, notes, and snippets.

@victorhenrion
Last active December 15, 2025 11:47
Show Gist options
  • Select an option

  • Save victorhenrion/4c2c8a0508682f46aa5d3453eec5d166 to your computer and use it in GitHub Desktop.

Select an option

Save victorhenrion/4c2c8a0508682f46aa5d3453eec5d166 to your computer and use it in GitHub Desktop.
javascript:(async()=>{const url=window.location.href.split('?')[0];const name=document.querySelector('h1')?.innerText?.trim()||'';const expSection=document.querySelector('[id*="experience"]')?.closest('section');let company='',position='';if(expSection){const firstExp=expSection.querySelector('li');if(firstExp){const spans=firstExp.querySelectorAll('span[aria-hidden="true"]');if(spans.length>=2){position=spans[0]?.innerText?.trim()||'';company=spans[1]?.innerText?.trim()||'';}}}if(!company){const headline=document.querySelector('.text-body-medium')?.innerText?.trim()||'';const atMatch=headline.match(/(?:at|@|chez)\s+(.+)/i);if(atMatch)company=atMatch[1].trim();}const row=[url,name,company,position].join('\t');try{await navigator.clipboard.writeText(row);}catch(e){prompt('Copy this:',row);}})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment