From 0028f37443a1a04d6f3072c046d11f64af0cef48 Mon Sep 17 00:00:00 2001 From: ringo Date: Sat, 27 Jan 2024 17:27:43 +0100 Subject: [PATCH] Add support for /reel/ urls --- instagram-dl.user.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/instagram-dl.user.js b/instagram-dl.user.js index 0d2adb8..cf38fa1 100644 --- a/instagram-dl.user.js +++ b/instagram-dl.user.js @@ -9,7 +9,7 @@ // @name:hi इंस्टाग्राम डाउनलोडर // @name:ru Загрузчик Instagram // @namespace https://github.com/y252328/Instagram_Download_Button -// @version 1.17.17 +// @version 1.17.18 // @compatible chrome // @description Add the download button and the open button to download or open profile picture and media in the posts, stories, and highlights in Instagram // @description:zh-TW 在Instagram頁面加入下載按鈕與開啟按鈕,透過這些按鈕可以下載或開啟大頭貼與貼文、限時動態、Highlight中的照片或影片 @@ -59,8 +59,8 @@ const datetimeTemplate = '%y%%m%%d%_%H%%M%%S%'; // ================== - const postIdPattern = /^\/p\/([^/]+)\//; - const postUrlPattern = /instagram\.com\/p\/[\w-]+\//; + const postIdPattern = /^\/(?:p|reel)\/([^/]+)\//; + const postUrlPattern = /instagram\.com\/(?:p|reel)\/[\w-]+\//; var svgDownloadBtn = `