Last active
December 10, 2015 11:21
-
-
Save Rebolon/fc669d6e614416916f52 to your computer and use it in GitHub Desktop.
Transform your linkedin preview page into cool html cv
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
// go on https://www.linkedin.com/profile/preview?locale=en_US&trk=prof-0-sb-preview-primary-button | |
// and copy paste those in your console | |
// différents en-tetes | |
$('div[id=header], div[id=text-ad-container], div[id=preview-ctx]').remove(); | |
//barre latéral | |
$('div[id=aux]').remove(); | |
// titre Parcours | |
$('#background h2').remove(); | |
// suppression du résumé si besoin | |
//$('#background-summary-container').remove(); | |
// relations dans les projets | |
$('dl.associated-list').remove(); | |
// compteur de projet | |
$('dl.education-associated').remove(); | |
// personnes ayant confirmé une compétence | |
$('div.endorsers-container').remove(); | |
// compétences | |
$('#background-skills #profile-skills h5').remove(); | |
if ($('div[id=profile-skills] h5').length >1) $('div[id=profile-skills] h5')[1].remove(); | |
if ($('div[id=profile-skills] ul.skills-section').length >1) $('div[id=profile-skills] ul.skills-section')[1].remove(); | |
$('div[id=profile-skills] ul.skills-section').addClass('compact-view'); | |
$('.skill-pill a').remove(); // compteurs | |
// recommander | |
$('div[id=endorsements]').remove(); | |
//relations | |
$('div[id=connections]').remove(); | |
// abonnements | |
$('div[id=groups-container], div[id=following-container]').remove(); | |
// footer | |
$('div[id=footer]').remove(); | |
// iframe | |
$('iframe').remove(); | |
// hidden | |
$('div.hidden').remove(); | |
// scripts | |
$('script, noscript').remove(); | |
// divers | |
$('#lui-panel-body, #lui-mini-profile-body, #callout-overlay, #inSlowConfig, #a11y-menu').remove(); | |
// position du background et du body | |
$('div[id=freemium-bg]').css('top', '0px'); | |
$('div[id=global-error]').css('margin-top', '50px'); | |
$('div[id=profile]').css('width', '100%'); | |
// position de la vcard / a la photo | |
$('div[id=profile] div.profile-overview').css('float', 'left'); | |
// affichage des coordonnées | |
$('a[id=contact-info-tab]').click(); | |
// nettoyage du head du cv | |
$('div[id=top-card] div.profile-aux, div[id=top-card] div.account-icons').remove(); | |
// or if you prefer to clean a public profile (when you are not logged) | |
var toRemove = ['header', '.member-connections', '.reg-upsell', '#aux', '#directory', 'footer'], el; | |
for (var i=0 ; i<toRemove.length ; i++) { | |
el = $(toRemove[i]); | |
if (el) el.remove(); | |
} | |
$('#top-card').attr('style', 'margin-bottom:0px'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment