스크립트를 설치하려면 유저 스크립트 관리자 확장을 설치해야 합니다.
Instagram changes their front-end frequently, but I'm focusing on my full time job now. Which means I may not fix this script in a short time if this script breaked by Instagram web changing. Thank you for your patience.
The newer versions code only do some simple tests on Chrome. So if you have any problem, please feel free to contact me in English or Chinese and attach the detail information such as your runtime environment, IG post url, etc.
Note: This script only tests on Chrome
, Edge, and Firefoxwith Tampermonkey on Windows 10 1903 64-bit.
Around May 2022, Instagram modified the web page so that some media could not be downloaded (especially Reels). From this script version 1.13, a new method of fetching media url has been added and is enabled by default (not yet applied to Story). This new method can obtain full resolution pictures (to be verified) and all media can be downloaded at present, but the disadvantage is that the speed of fetching URLs is slow (download speed has no effect) and may have some bugs. You can set
disableNewUrlFetchMethod to true if you don't want to use the new method. Or you can set
prefetchAndAttachLink to true in order to prefetch the URL info.
This script can be configured by modifying the following constant variables in the head of this script.
disableNewUrlFetchMethod: boolean, disable new url fetch method which uses info API
prefetchAndAttachLink: boolean, attach the link into the button elements if true
hoverToFetchAndAttachLink: boolean, fetch and add link when hover the button
postFilenameTemplate: string, naming rule for media downloading in the post
storyFilenameTemplate: string, naming rule for media downloading in the story
replaceJpegWithJpg: boolean, replace
%id%: the poster id
%datetime%: the media upload time, see next section for the datatime format
%medianame%: the original media file name
%postId%: the post id
%mediaIndex%: the media index in multiple-media posts
%ext%: the file extension of media
%y%: year (4 digits)
%m%: month (01-12)
%d%: day (01-31)
%H%: hour (00-23)
%M%: min (00-59)
%S%: sec (00-59)
i: Open the media in the new tab
k: Download the media
j: Next media in the multiple media post
l: Previous media in the multiple media post
The shortcut keys do not work on the Instagram main page currently