Skip to content

Instantly share code, notes, and snippets.

@JamieMason
Created July 30, 2014 06:54
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 JamieMason/be4c0f94ec32114ad7e9 to your computer and use it in GitHub Desktop.
Save JamieMason/be4c0f94ec32114ad7e9 to your computer and use it in GitHub Desktop.
LinkedIn.com imported contacts, filter out connections that do not have a LinkedIn account.

LinkedIn.com imported contacts, filter out connections that do not have a LinkedIn account.

Navigate to https://www.linkedin.com/people/contacts, open your browser Developer console and run;

[].forEach.call(document.querySelectorAll('li.vcard'), function(el) {
  if (!el.querySelector('span.in-icon')) {
    el.parentNode.removeChild(el);
  }
});

Your contacts that do not have LinkedIn accounts will be removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment