-
-
Save marioluan/9eb40f1e8fddbfd7edc7ff5164f019a8 to your computer and use it in GitHub Desktop.
// 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(); |
@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.
// Usage
// 1. Open your public profile in an incognito* browser tab. E.g.: https://www.linkedin.com/in/felipe-corso
// 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 unnecessary stuff
// Print Info
// To remove the date, page title, URL and page number
// uncheck the option "Headers and footers" on print pop-up
// More details: https://www.geeksforgeeks.org/how-to-remove-url-from-printing-the-page/
I created a solution.
https://github.com/rafaelparenza/Linkedntojson