Instagram Downloader

Quick 'n dirty little userscript for accessing pictures and videos off of Instagram. Everything is accessed via right-clicking image or video. Note: for videos requires viewing the actual post (not just in the feed).

As of 15.12.2021. See апошняя версія.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

Advertisement:

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Advertisement:

Аўтар
Lawrence Sim
Рэйтынг
0 0 0
Версія
1.0.2
Створаны
27.08.2020
Абноўлены
15.12.2021
Памер
6.6 КБ
Ліцэнзія
WTFPL (http://www.wtfpl.net)
Ужываецца на

Quick 'n dirty little userscript for accessing pictures and videos off of Instagram.

Instructions: Right-click on the image or video to see a context menu for opening the media in isolation in a new tab. Minor caveat for videos, see below.

Downloading videos: You can only get the link to videos if directly viewing the post (if on feed, click the tree-dots menu on upper-right of post and then 'Go to post'). On the feed, it will only link to the preview image for the video.

Why? Instagram obfuscates videos pretty hard by using an ephemeral BLOB URL that it immediately revokes, making it pretty difficult to access. To get around this, script sends request to the post's JSON info to pull media URL, for which it requires the post ID. Unfortunately, post ID isn't easily obtainable in the feed view without injecting code into ReactJS, which just doesn't seen feasible at the moment, so it grabs the post ID from the URL, which is only updated with post ID when viewing the post directly.

Change log

v1.0.2 : Dec 14, 2020

  • Fix minor bug with query selector in single image posts.

v1.0.1 : Dec 12, 2020

  • Reorganize script a bit.
  • Use Fetch API for JSON request.
  • Fix bugs related to calling stuff on null objects.

v0.5.0 : Dec 10, 2020

  • Videos linked via call to JSON post information. As it requires post ID (not easily obtained in feed), must be viewing specific post.

v0.4.0 : Dec 8, 2020

  • Fix mixed videos and images in multiple/gallery posts.
  • Attempting to fix how videos are downloaded, still working..

v0.3.0 : Oct 27, 2020

  • Adjust MutationObserver to search in mutations only.

v0.2.0 : Aug 28, 2020

  • Add support for videos.