Last active
June 23, 2023 13:05
-
-
Save marioluan/9eb40f1e8fddbfd7edc7ff5164f019a8 to your computer and use it in GitHub Desktop.
Export your linkedin public profile to PDF if you're having trouble with internationalization.
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
// Reason to create this script: | |
// My profile was created in portuguese, but when I translated | |
// it to english and tried to save my profile as PDF, it could not | |
// translate some words and dates to english, so I created this gist | |
// as an alternative. | |
// Usage | |
// 1. open your public profile in an incognito* browser tab. E.g.: https://www.linkedin.com/in/marioluan | |
// 2. copy-n-past the code below into the browser console | |
// 3. save as PDF | |
// 4. add me on linkedin :) (optional) | |
// 5. contribute to make this gist better (optional) | |
// * This is necessary to avoid loading private sessions | |
// of your profile and other unecessary stuff | |
// top bar | |
$("#header-banner").remove() | |
// the ones which appers below your profile picture and above your summary | |
// and another one which may apper at the bottom of your profile | |
$(".reg-upsell").remove() | |
// column from right | |
$("#aux").remove() | |
// expands the skills section | |
$("[for=skills-expander-state-checkbox]").click() | |
// removes the 'see less' button | |
$("[for=skills-expander-state-checkbox]").remove() | |
//recommendations section | |
$("#recommendations").remove() | |
// groups section | |
$("#groups").remove() | |
// volunteering section | |
$("#volunteering").remove() | |
// linkedin member directory | |
$("#directory").remove() | |
// page footer | |
$("#layout-footer").remove() | |
// triggres the print command, so you can save as PDF | |
window.print(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@lcsmil Thank you for reporting, and sorry for the delay!
I tested with your profile, and it seems to be working. Nevertheless, I added a condition on that part you mentioned.
Remember to follow the instructions at the top of the document.