Skip to content

Commit 745856c

Browse files
committed
refactor insta
1 parent 2797164 commit 745856c

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

popup/recommend.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -886,4 +886,21 @@ export const Recommend = {
886886
),
887887
},
888888
},
889+
insta_bulkDownload: {
890+
id: "recommend_fbAIOInstagram",
891+
icon: "https://static.cdninstagram.com/rsrc.php/v3/yI/r/VsNE-OHk_8a.png",
892+
name: {
893+
en: "Instagram - Bulk download",
894+
vi: "Instagram - Tải hàng loạt",
895+
},
896+
description: {
897+
en: "Download all user's media on instagram (video/photo/reels/highlight)",
898+
vi: "Tải mọi ảnh/video/reel/highlight của người dùng Instagram",
899+
},
900+
badges: [BADGES.new, BADGES.hot],
901+
popupScript: {
902+
onClick: () =>
903+
window.open("https://facebook-all-in-one.com/dist/#/bulk-downloader"),
904+
},
905+
},
889906
};

popup/tabs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,11 @@ const tabs = [
168168
{
169169
...CATEGORY.instagram,
170170
scripts: [
171+
R.insta_bulkDownload,
172+
// s.insta_getAllUserMedia,
171173
s.insta_getUserInfo,
172174
s.insta_injectDownloadBtn,
173175
s.insta_anonymousStoryViewer,
174-
createTitle("--- Bulk Download ---", "--- Tải hàng loạt ---"),
175-
s.insta_getAllUserMedia,
176176
s.insta_getFollowForOther,
177177
],
178178
},

scripts/insta_GLOBAL.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ export function getUniversalCdnUrl(cdnLink) {
2525
return cdnLink;
2626
}
2727
}
28+
29+
// WARNING: not working anymore??
2830
export async function getAllMedia({ uid, progressCallback, limit = 0 }) {
2931
let all_urls = [];
3032
let after = "";

0 commit comments

Comments
 (0)