Skip to content

Commit 4af24e3

Browse files
Merge pull request #38 from Useful-Scripts-Extension/dev
Dev
2 parents 61a1f88 + 6cbdb45 commit 4af24e3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+2408
-197
lines changed

README-en.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@ Try online [Here](https://useful-scripts-extension.github.io/useful-script/popup
3232

3333
Current Versions:
3434

35-
- **v1.7**: tiktok update 28/07/2024
35+
- **v1.8**: douyin + facebook + youtube update 22/08/2024
3636

3737
<details>
3838
<summary>Old versions</summary>
3939

40-
- <del>v1.69: small update (14/07/2024)</del>
40+
- <del>v1.7: tiktok update (28/07/2024)</del>
4141
- <del>v1.68: big facebook update (01/07/2024)</del>
42-
- <del>v1.67 - huge update (29/05/2024)</del>
43-
- <del>v1.66 - big update (27/04/2024)</del>
42+
- <del>v1.67: huge update (29/05/2024)</del>
43+
- <del>v1.66: big update (27/04/2024)</del>
4444
- <del>v1.65-hotfix (08/04/2024)</del>
4545
- <del>v1.64-hotfix (07/04/2024)</del>
4646
- <del>v1.63 (03/04/2024)</del>
@@ -69,7 +69,7 @@ Current Versions:
6969

7070
Expected that this useful-script extension will include the functions of [RevealDeletedFBMessages](https://github.com/HoangTran0410/RevealDeletedFBMessages) and [FBMediaDownloader](https://github.com/HoangTran0410/FBMediaDownloader)
7171

72-
[![Star History Chart](https://api.star-history.com/svg?repos=HoangTran0410/useful-script,HoangTran0410/FBMediaDownloader,HoangTran0410/RevealDeletedFBMessages&type=Date)](https://star-history.com/#HoangTran0410/useful-script&HoangTran0410/FBMediaDownloader&HoangTran0410/RevealDeletedFBMessages&Date)
72+
[![Star History Chart](https://api.star-history.com/svg?repos=Useful-Scripts-Extension/useful-script,HoangTran0410/FBMediaDownloader,HoangTran0410/RevealDeletedFBMessages&type=Date)](https://star-history.com/#Useful-Scripts-Extension/useful-script&HoangTran0410/FBMediaDownloader&HoangTran0410/RevealDeletedFBMessages&Date)
7373

7474
## For developer (Demo)
7575

README.md

+6-5
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
- [Dành cho dev (Demo)](#dành-cho-dev-demo)
1515
- [Contribute](#contribute)
1616

17-
Donate? Muốn hỗ trợ mình 1 ly cafe <3 [Donate tại đây](https://github.com/HoangTran0410/HoangTran0410/blob/main/DONATE.md)
17+
Donate? Muốn hỗ trợ mình 1 ly cafe <3 [Donate tại đây](https://hoangtran0410.github.io/HoangTran0410/DONATE)
1818

1919
## Giới thiệu
2020

@@ -32,15 +32,16 @@ Xem [Lịch sử cập nhật](/md/CHANGELOGS.md)
3232

3333
Phiên bản hiện tại:
3434

35-
- **v1.7**: tiktok update 28/07/2024
35+
- **v1.8**: douyin + facebook + youtube update 22/08/2024
3636

3737
<details>
3838
<summary>Xem phiên bản cũ hơn</summary>
3939

40+
- <del>v1.7: tiktok update (28/07/2024)</del>
4041
- <del>v1.69: small update (14/07/2024)</del>
4142
- <del>v1.68: bản cập nhật facebook lớn (01/07/2024)</del>
42-
- <del>v1.67 - bản cập nhật siêu lớn (29/05/2024)</del>
43-
- <del>v1.66 - bản cập nhật lớn (27/04/2024)</del>
43+
- <del>v1.67: bản cập nhật siêu lớn (29/05/2024)</del>
44+
- <del>v1.66: bản cập nhật lớn (27/04/2024)</del>
4445
- <del>v1.65-hotfix (08/04/2024)</del>
4546
- <del>v1.64-hotfix (07/04/2024)</del>
4647
- <del>v1.63 (03/04/2024)</del>
@@ -69,7 +70,7 @@ Phiên bản hiện tại:
6970

7071
Dự kiến extension useful-script này sẽ bao gồm cả chức năng của [RevealDeletedFBMessages](https://github.com/HoangTran0410/RevealDeletedFBMessages)[FBMediaDownloader](https://github.com/HoangTran0410/FBMediaDownloader)
7172

72-
[![Star History Chart](https://api.star-history.com/svg?repos=HoangTran0410/useful-script,HoangTran0410/FBMediaDownloader,HoangTran0410/RevealDeletedFBMessages&type=Date)](https://star-history.com/#HoangTran0410/useful-script&HoangTran0410/FBMediaDownloader&HoangTran0410/RevealDeletedFBMessages&Date)
73+
[![Star History Chart](https://api.star-history.com/svg?repos=Useful-Scripts-Extension/useful-script,HoangTran0410/FBMediaDownloader,HoangTran0410/RevealDeletedFBMessages&type=Date)](https://star-history.com/#Useful-Scripts-Extension/useful-script&HoangTran0410/FBMediaDownloader&HoangTran0410/RevealDeletedFBMessages&Date)
7374

7475
## Dành cho dev (Demo)
7576

1.77 KB
Binary file not shown.

config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export default {
22
version_check:
3-
"https://raw.githubusercontent.com/HoangTran0410/useful-script/main/manifest.json",
4-
source_code: "https://github.com/HoangTran0410/useful-script",
3+
"https://raw.githubusercontent.com/Useful-Scripts-Extension/useful-script/main/manifest.json",
4+
source_code: "https://github.com/Useful-Scripts-Extension/useful-script",
55
store:
66
"https://chrome.google.com/webstore/devconsole/ad27ff83-24b1-4348-810d-9cfdc30a5331/heoejcamgchindphgghdhmjpgmldnepl/edit/status",
77
};

index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
<body>
1111
<script>
12-
window.location.href = "https://hoangtran0410.github.io/useful-script/popup/popup.html"
12+
window.location.href = "https://Useful-Scripts-Extension.github.io/useful-script/popup/popup.html"
1313
</script>
1414
</body>
1515

manifest.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"manifest_version": 3,
44
"name": "Useful Scripts",
55
"description": "Scripts that can make your life faster and better",
6-
"homepage_url": "https://github.com/HoangTran0410/useful-script",
7-
"version": "1.7",
6+
"homepage_url": "https://github.com/Useful-Scripts-Extension/useful-script",
7+
"version": "1.8",
88
"icons": {
99
"16": "./assets/icon16.png",
1010
"32": "./assets/icon32.png",

md/CHANGELOGS.md

+27-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,28 @@
11
## Change logs
22

3+
<details>
4+
<summary>v1.8 - 22/08/2024</summary>
5+
6+
- Facebook
7+
- NEW / SUPER HOT: Facebook All in one [web](https://facebook-all-in-one.com)
8+
- NEW: auto duyệt bài spam group facebook [source](/scripts/fb_autoRemoveSpamPostGroup.js)
9+
10+
- Douyin
11+
- NEW: batch download [source](/scripts/douyin_batchDownload.js)
12+
13+
- Google
14+
- FIX: download private (shared to you) videos that dont have download button [source](/scripts/ggdrive_downloadVideo.js)
15+
16+
- Youtube
17+
- FIX: change country [source](/scripts/youtube_changeCountry.js)
18+
19+
- More
20+
- FIX: show hidden fields [source](/scripts/showHiddenFields.js)
21+
- FIX: dino hack [source](/scripts/dino_hack.js)
22+
- FIX: create invisible text (web version) [source](/scripts/createInvisibleText.js)
23+
24+
</details>
25+
326
<details>
427
<summary>v1.7 - 28/07/2024</summary>
528

@@ -35,11 +58,11 @@
3558
- click to disable/enable for current website [source](/scripts/smoothScroll.js)
3659

3760
- Merge request
38-
- [fix: 🐛 fix fireship_vip script](https://github.com/HoangTran0410/useful-script/pull/28)
61+
- [fix: 🐛 fix fireship_vip script](https://github.com/Useful-Scripts-Extension/useful-script/pull/28)
3962
- [feat: youglish search
40-
](https://github.com/HoangTran0410/useful-script/pull/30)
41-
- [feat: youtube download video UI](https://github.com/HoangTran0410/useful-script/pull/31)
42-
- [style: 🪄 beautify ui for viewScriptSource](https://github.com/HoangTran0410/useful-script/pull/32)
63+
](https://github.com/Useful-Scripts-Extension/useful-script/pull/30)
64+
- [feat: youtube download video UI](https://github.com/Useful-Scripts-Extension/useful-script/pull/31)
65+
- [style: 🪄 beautify ui for viewScriptSource](https://github.com/Useful-Scripts-Extension/useful-script/pull/32)
4366
- More shortcuts: google trend, time.is, aiforthat, cobalt, nirsoft
4467

4568
</details>

popup/index.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -1046,7 +1046,10 @@ async function initShowDonate() {
10461046
);
10471047
}
10481048
if (res.isDenied) {
1049-
window.open("https://github.com/HoangTran0410/useful-script", "_blank");
1049+
window.open(
1050+
"https://github.com/Useful-Scripts-Extension/useful-script",
1051+
"_blank"
1052+
);
10501053
}
10511054
}
10521055
}

popup/popup.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ <h3>
2525
<a data-track="donate" target="_blank" href="https://hoangtran0410.github.io/HoangTran0410/DONATE">
2626
<i class="fa-solid fa-mug-saucer"></i> donate
2727
</a>
28-
<a data-track="github" target="_blank" href="https://github.com/HoangTran0410/useful-script">
28+
<a data-track="github" target="_blank" href="https://github.com/Useful-Scripts-Extension/useful-script">
2929
<i class="fa-solid fa-code"></i> source code
3030
</a>
3131
<a data-track="fanpage" target="_blank" href="https://www.facebook.com/groups/1154059318582088">

popup/recommend.js

+33
Original file line numberDiff line numberDiff line change
@@ -886,4 +886,37 @@ 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) on Facebook AIO",
898+
vi: "Tải mọi ảnh/video/reel/highlight của người dùng Instagram với Facebook AIO",
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+
},
906+
facebook_aio_stalker: {
907+
id: "recommend_facebook_aio_stalker",
908+
icon: "/scripts/fb_aio.png",
909+
name: {
910+
en: "Stalk anyone on Facebook AIO",
911+
vi: "Stalk bất cứ ai với Facebook AIO",
912+
},
913+
description: {
914+
en: "Download all Stories, Photos ,Videos, Albums, Reels, Groups, Pages, ... on Facebook AIO",
915+
vi: "Tải mọi thứ Story, Ảnh, Video, Album, Reels, Nhóm, Trang, ... với Facebook AIO",
916+
},
917+
badges: [BADGES.recommend, BADGES.hot],
918+
popupScript: {
919+
onClick: () => window.open("https://facebook-all-in-one.com/"),
920+
},
921+
},
889922
};

popup/tabs.js

+7-4
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ const tabs = [
123123
s.fb_getAvatarFromUid,
124124
s.fb_exportSaved,
125125
createTitle("--- Hot ---", "--- Nổi bật ---"),
126-
s.fb_autoLike,
127126
s.fb_revealDeletedMessages,
128127
s.fb_moreReactionStory,
129128
s.fb_toggleLight,
@@ -132,8 +131,11 @@ const tabs = [
132131
s.fb_blockSeenStory,
133132
s.fb_getPostReactionCount,
134133
s.fb_whoIsTyping,
134+
s.fb_autoLike,
135+
s.fb_autoRemoveSpamPostGroup,
135136
// s.fb_blockSeenAndTyping,
136137
createTitle("--- Statistic ---", "--- Thống kê ---"),
138+
R.facebook_aio_stalker,
137139
s.fb_searchGroupForOther,
138140
s.fb_searchPageForOther,
139141
s.fb_searchPostsForOther,
@@ -168,11 +170,11 @@ const tabs = [
168170
{
169171
...CATEGORY.instagram,
170172
scripts: [
173+
R.insta_bulkDownload,
174+
// s.insta_getAllUserMedia,
171175
s.insta_getUserInfo,
172176
s.insta_injectDownloadBtn,
173177
s.insta_anonymousStoryViewer,
174-
createTitle("--- Bulk Download ---", "--- Tải hàng loạt ---"),
175-
s.insta_getAllUserMedia,
176178
s.insta_getFollowForOther,
177179
],
178180
},
@@ -197,10 +199,11 @@ const tabs = [
197199
...CATEGORY.tiktok,
198200
scripts: [
199201
createTitle("--- Tiktok ---", "--- Tiktok ---"),
202+
s.tiktok_batchDownload,
200203
s.tiktok_downloadWatchingVideo,
201204
s.tiktok_downloadVideo,
202-
s.tiktok_batchDownload,
203205
createTitle("--- Douyin ---", "--- Douyin ---"),
206+
s.douyin_batchDownload,
204207
s.douyin_downloadWachingVideo,
205208
s.douyin_downloadAllVideoUser,
206209
],

scripts/@index.js

+2
Original file line numberDiff line numberDiff line change
@@ -171,3 +171,5 @@ export { default as youtube_changeCountry } from "./youtube_changeCountry.js";
171171
export { default as fb_autoLike } from "./fb_autoLike.js";
172172
export { default as guland_VIP } from "./guland_VIP.js";
173173
export { default as pip_anything } from "./pip_anything.js";
174+
export { default as douyin_batchDownload } from "./douyin_batchDownload.js";
175+
export { default as fb_autoRemoveSpamPostGroup } from "./fb_autoRemoveSpamPostGroup.js";
Binary file not shown.
327 Bytes
Loading
Loading
Loading
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"manifest_version": 3,
3+
"name": "Facebook Group Extension",
4+
"description": "Quản lý nhóm facebook",
5+
"version": "1.0",
6+
"action": {
7+
"default_popup": "./popup/index.html"
8+
},
9+
"icons": {
10+
"16": "assets/icon_default_16.png",
11+
"48": "assets/icon_default_48.png",
12+
"128": "assets/icon_default_128.png"
13+
},
14+
"permissions": [
15+
"tabs",
16+
"cookies",
17+
"scripting",
18+
"declarativeNetRequest",
19+
"declarativeNetRequestFeedback",
20+
"declarativeNetRequestWithHostAccess"
21+
],
22+
"host_permissions": ["*://*/*", "<all_urls>"],
23+
"declarative_net_request": {
24+
"rule_resources": [
25+
{
26+
"id": "ruleset_1",
27+
"enabled": true,
28+
"path": "./rules.json"
29+
}
30+
]
31+
}
32+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="UTF-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<title>Quản lý nhóm Facebook</title>
8+
9+
<link rel="stylesheet" href="style.css">
10+
</head>
11+
12+
<body>
13+
<h1>Auto duyệt bài spam group fb</h1>
14+
15+
<h3>Chọn hành động</h3>
16+
<label class="container">Đăng comment
17+
<input type="radio" checked="checked" name="action">
18+
<span class="checkmark"></span>
19+
</label>
20+
<label class="container">Xoá comment
21+
<input type="radio" name="action">
22+
<span class="checkmark"></span>
23+
</label>
24+
25+
<div class="input-container">
26+
<h3>Thời gian chờ (giây):</h3>
27+
<span><i>(ngẫu nhiên trong khoảng)</i></span><br />
28+
<div class="input-row">
29+
<input type="number" min="0" value="5" id="inputWaitMin" /> ➡️ <input type="number" min="0" value="20"
30+
id="inputWaitMax" />
31+
</div>
32+
</div>
33+
34+
<h3>Duyệt tối đa bao nhiêu bài?</h3>
35+
<span><i>(nhập 0 để duyệt hết)</i></span><br />
36+
<input type="number" id="max-posts" value="10">
37+
38+
<button class="button" id="start-btn">Bắt đầu</button>
39+
40+
<script src="main.js"></script>
41+
</body>
42+
43+
</html>

0 commit comments

Comments
 (0)