diff --git a/instagram-dl.user.js b/instagram-dl.user.js index 93c9ca7..a8e5957 100644 --- a/instagram-dl.user.js +++ b/instagram-dl.user.js @@ -62,7 +62,7 @@ const postIdPattern = /^\/p\/([^/]+)\//; const postUrlPattern = /instagram\.com\/p\/[\w-]+\//; - var svgDownloadBtn = ` + var svgNewtabBtn = ` `; @@ -146,7 +146,7 @@ var checkExistTimer = setInterval(function () { const curUrl = window.location.href; - const savePostSelector = 'article *:not(li)>*>*>*>div:not([class])>div[role="button"]:not([style]):not([tabindex="-1"])'; + const savePostSelector = 'article[role="presentation"][tabindex="-1"] > div > div > div[role="presentation"][tabindex="-1"] section'; const storySelector = 'section > *:not(main) header div>svg:not([aria-label=""])'; const profileSelector = 'header section svg circle'; const playSvgPathSelector = 'path[d="M5.888 22.5a3.46 3.46 0 0 1-1.721-.46l-.003-.002a3.451 3.451 0 0 1-1.72-2.982V4.943a3.445 3.445 0 0 1 5.163-2.987l12.226 7.059a3.444 3.444 0 0 1-.001 5.967l-12.22 7.056a3.462 3.462 0 0 1-1.724.462Z"]';