Save Instagram Photos from the Web

This is a very simple Javascript program that allows you to save photo's from Instagram.

The Problem

The main problem is that there is an invisible page element (a transparent div) that you cannot see but that prevents you from clicking directly on pictures on the Instagram website. The code below hides this invisible element so that you can right-click on the image and save it.

Browser Extension

If there is enough interest, I may create a browser extension that does this automatically. If you're interested, send me a quick email (joel@joeldare.com).

JavaScript Version

Here are the steps to take to hide the invisible element that is blocking you from saving Instagram images.

  1. Highlight and copy the entire code block below
  2. Open your browser and visit intagram.com
  3. Enter a hash tag in the search box
  4. Open the first post under “Most Recent”
  5. Open the JavaScript console in your browser
  6. Paste this code into the console
  7. Right click on an image and choose “Save As” to save it

Here's the code.

setInterval(
    function() {
        var element = document.querySelectorAll('._ovg3g');
        element[21].style.display = 'none';
    },
500);
comments powered by Disqus
save_instagram_photos_from_the_web.txt · Last modified: 2020/06/01 22:53 (external edit)