Skip to content

Commit 68770bf

Browse files
committed
.
1 parent 93e37db commit 68770bf

File tree

4 files changed

+23
-15
lines changed

4 files changed

+23
-15
lines changed

popup/tabs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ const tabs = [
106106
s.fb_downloadCommentVideo,
107107
s.fb_videoDownloader,
108108
s.fb_getAvatarFromUid,
109-
s.fb_storyInfo,
109+
// s.fb_storyInfo,
110110
createTitle("--- Bulk Download ---", "--- Tải hàng loạt ---"),
111111
s.fb_downloadAlbumMedia,
112112
s.fb_exportSaved,

scripts/fb_downloadAlbumMedia.js

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ export default {
1212
},
1313

1414
onClickExtension: function () {
15-
const accessToken = prompt("Enter access token:", "");
15+
const accessToken = prompt("Nhập access token:", "");
1616
if (!accessToken) return;
17-
const albumId = prompt("Enter album id: ", "");
17+
const albumId = prompt("Nhập album id: ", "");
1818
if (!albumId) return;
1919

2020
async function fetchAlbumPhotosFromCursor({ albumId, cursor }) {
@@ -95,14 +95,22 @@ export default {
9595
albumId,
9696
progress: (length) =>
9797
setLoadingText("Đang thu thập " + length + " links..."),
98-
}).then((links) => {
99-
if (
100-
confirm(
101-
"Tìm được " + links.length + " links ảnh/video.\nBấm OK để tải xuống."
98+
})
99+
.then((links) => {
100+
if (
101+
confirm(
102+
"Tìm được " +
103+
links.length +
104+
" links ảnh/video.\nBấm OK để tải xuống."
105+
)
102106
)
103-
)
104-
downloadData(links.join("\n"), albumId, ".txt");
105-
closeLoading();
106-
});
107+
downloadData(links.join("\n"), albumId, ".txt");
108+
})
109+
.catch((e) => {
110+
alert("ERROR: " + e);
111+
})
112+
.finally(() => {
113+
closeLoading();
114+
});
107115
},
108116
};

scripts/fb_storyInfo.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ export default {
55
vi: "Xem thông tin của Facebook Story",
66
},
77
description: {
8-
en: "",
9-
vi: "",
8+
en: "Get facebook story info",
9+
vi: "Xem thông tin story",
1010
},
1111

1212
onClick: async function () {

scripts/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ import send_shareFiles from "./send_shareFiles.js";
116116
import fb_downloadCommentVideo from "./fb_downloadCommentVideo.js";
117117
import scribd_downloadDocuments from "./scribd_downloadDocuments.js";
118118
import fb_toggleNewFeed from "./fb_toggleNewFeed.js";
119-
import fb_storyInfo from "./fb_storyInfo.js";
119+
// import fb_storyInfo from "./fb_storyInfo.js";
120120
import envato_bypassPreview from "./envato_bypassPreview.js";
121121
import shopee_topVariation from "./shopee_topVariation.js";
122122
import donotBlockMe from "./donotBlockMe.js";
@@ -293,7 +293,7 @@ const allScripts = {
293293
fb_downloadCommentVideo: addBadge(fb_downloadCommentVideo, BADGES.new),
294294
scribd_downloadDocuments: addBadge(scribd_downloadDocuments, BADGES.new),
295295
fb_toggleNewFeed: addBadge(fb_toggleNewFeed, BADGES.new),
296-
fb_storyInfo: addBadge(fb_storyInfo, BADGES.beta),
296+
// fb_storyInfo: addBadge(fb_storyInfo, BADGES.beta),
297297
envato_bypassPreview: addBadge(envato_bypassPreview, BADGES.new),
298298
shopee_topVariation: addBadge(shopee_topVariation, BADGES.hot),
299299
donotBlockMe: addBadge(donotBlockMe, BADGES.new),

0 commit comments

Comments
 (0)