How to Download LinkedIn Slides Using JavaScript (Quick Guide)

1. Open the LinkedIn Post

Oleg Khomenko
2 min readJan 22, 2025
  • Navigate to the post containing the slides you want to download
Make sure the carousel is visible on your screen

2. Open Developer Tools

  • Right-click anywhere on the page and select “Inspect”
  • Or press F12 on Windows/Linux
  • Or press Cmd + Option + I on Mac

3. Access the Console

  • Click on the “Console” tab in Developer Tools
This is where we’ll paste our code

4. Copy and Paste the Script

  • Copy the following code:
function downloadSlides() {
const slides = document.querySelectorAll('.carousel-track img');

async function downloadImage(url, index) {
try {
const response = await fetch(url);
const blob = await response.blob();
const link = document.createElement('a');
link.href = URL.createObjectURL(blob);
link.download = `slide_${index + 1}.jpg`;
document.body.appendChild(link);
link.click();
document.body.removeChild(link);
URL.revokeObjectURL(link.href);
} catch (error) {
console.error(`Error downloading slide ${index + 1}:`, error);
}
}

slides.forEach((slide, index) => {
const imageUrl = slide.getAttribute('src') || slide.getAttribute('data-src');
if (imageUrl) {
setTimeout(() => {
downloadImage(imageUrl, index);
}, index * 1000);
}
});
}

downloadSlides();
  • Paste it into the Console and press Enter

Important Notes:

  • Your browser might block multiple downloads initially
  • Look for a “Allow multiple downloads” option in your browser’s download settings
  • Files will be saved as slide_1.jpg, slide_2.jpg, etc.
  • The script downloads images in high resolution
  • There’s a 1-second delay between downloads to prevent browser issues

Happy learning! 📚

— — —

Did you find this helpful? Follow me for more tech tips and tricks.

--

--

No responses yet