Skip to content

Commit a4022f8

Browse files
committed
fix new domain web.facebook.com
1 parent 9652cfe commit a4022f8

13 files changed

+19
-16
lines changed

scripts/fb_downloadWatchingVideo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default {
1111
en: "Download any facebook video that you are watching (watch/story/comment/reel/chat)",
1212
vi: "Tải bất kỳ video facebook nào mà bạn đang xem (watch/story/comment/reel/chat/bình luận/tin nhắn)",
1313
},
14-
whiteList: ["https://www.facebook.com/*"],
14+
whiteList: ["https://*.facebook.com/*"],
1515

1616
onClickExtension: async function () {
1717
let { closeLoading, setLoadingText } = showLoading(

scripts/fb_getAlbumId.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default {
88
en: "Get id of facebook album in current website",
99
vi: "Lấy id của facebook album trong trang web hiện tại",
1010
},
11-
whiteList: ["https://www.facebook.com/*"],
11+
whiteList: ["https://*.facebook.com/*"],
1212

1313
onClick: function () {
1414
// Lấy album id - khi đang xem 1 album, ví dụ https://www.facebook.com/media/set/?vanity=ColourfulSpace&set=a.945632905514659

scripts/fb_getAllAlbumIdFromCurrentWebsite.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
en: "Get all id of album in facebook website",
88
vi: "Lấy tất cả album id có trong trang facebook",
99
},
10-
whiteList: ["https://www.facebook.com/*"],
10+
whiteList: ["https://*.facebook.com/*"],
1111

1212
onClick: function () {
1313
// Lấy tất cả album id có trong trang web - Khi đang xem 1 danh sách album của user/group/page

scripts/fb_getAllUidFromFbSearch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
en: "Get id of all user from facebook search page",
88
vi: "Lấy id của tất cả user từ trang tìm kiếm người dùng facebook",
99
},
10-
whiteList: ["https://www.facebook.com/*"],
10+
whiteList: ["https://*.facebook.com/*"],
1111

1212
onClick: function () {
1313
const getUid = async (url) => {

scripts/fb_getAllUidFromFriendsPage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
en: "Get id of all user from friends facebook page",
88
vi: "Lấy tất cả user ID từ trang danh sách bạn bè facebook",
99
},
10-
whiteList: ["https://www.facebook.com/*"],
10+
whiteList: ["https://*.facebook.com/*"],
1111

1212
onClick: async function () {
1313
// Lấy tất cả uid từ trang facebook search bạn bè

scripts/fb_getAllUidOfGroupMembers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export default {
77
en: "Get id of all user from group members facebook",
88
vi: "Lấy id của tất cả user từ group facebook",
99
},
10-
whiteList: ["https://www.facebook.com/*"],
10+
whiteList: ["https://*.facebook.com/*"],
1111

1212
onClick: async function () {
1313
// Lấy tất cả id của member trong group

scripts/fb_getGroupId.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default {
88
en: "Get id of group in facebook website",
99
vi: "Lấy id của group trong trang facebook hiện tại",
1010
},
11-
whiteList: ["https://www.facebook.com/*"],
11+
whiteList: ["https://*.facebook.com/*"],
1212

1313
onClick: async function () {
1414
// Lấy group id - trường hợp url của group hiển thị tên chứ ko hiển thị id. Ví dụ: https://www.facebook.com/groups/j2team.community.girls

scripts/fb_getTokenFacebook.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default {
88
en: "Get facebook access token from www.facebook.com",
99
vi: "Lấy facebook access token từ trang www.facebook.com",
1010
},
11-
whiteList: ["https://www.facebook.com/*"],
11+
whiteList: ["https://*.facebook.com/*"],
1212

1313
onClick: function () {
1414
try {

scripts/fb_getUid.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default {
88
en: "Get id of user in facebook website",
99
vi: "Lấy id của user trong trang facebook hiện tại",
1010
},
11-
whiteList: ["https://www.facebook.com/*"],
11+
whiteList: ["https://*.facebook.com/*"],
1212

1313
onClick: async function () {
1414
// Lấy user id (uid) - khi đang trong tường của người dùng muốn lấy user id. Ví dụ: https://www.facebook.com/callchoulnhe

scripts/fb_moreReactionStory.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default {
1111
infoLink:
1212
"https://www.facebook.com/groups/j2team.community/posts/1769666783365434",
1313

14-
whiteList: ["https://www.facebook.com/*"],
14+
whiteList: ["https://*.facebook.com/*"],
1515

1616
// FB POST: https://www.facebook.com/groups/j2team.community/posts/1769666783365434
1717
// Source https://github.com/whoant/react-story-facebook
@@ -37,8 +37,10 @@ export default {
3737
if (!window.location.href.includes("facebook.com/stories")) return;
3838
if (!!document.querySelector(".ufs-more-react-story")) return;
3939

40-
const fb_dtsg = await UsefulScriptGlobalPageContext.Facebook.getFbdtsg();
41-
const user_id = await UsefulScriptGlobalPageContext.Facebook.getYourUserId();
40+
const fb_dtsg =
41+
await UsefulScriptGlobalPageContext.Facebook.getFbdtsg();
42+
const user_id =
43+
await UsefulScriptGlobalPageContext.Facebook.getYourUserId();
4244

4345
/* HTML template
4446
<div class="ufs-more-react-story">

0 commit comments

Comments
 (0)