Skip to content

Dev #38

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 45 commits into from
Aug 22, 2024
Merged

Dev #38

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
b3e0be0
douyin - WIP
HoangTran0410 Jul 29, 2024
d53509b
minor fix
HoangTran0410 Jul 30, 2024
392c546
transfer repo
HoangTran0410 Jul 30, 2024
44ba215
douyin batch download - WIP
HoangTran0410 Jul 30, 2024
4fad85d
Merge branch 'main' into dev
HoangTran0410 Jul 31, 2024
7d49b0e
hotfix
HoangTran0410 Jul 31, 2024
6cdc208
update
HoangTran0410 Aug 1, 2024
4603218
refactor
HoangTran0410 Aug 1, 2024
3423446
fix
HoangTran0410 Aug 1, 2024
6c1efd1
track new fb users
HoangTran0410 Aug 2, 2024
ed080c5
test
HoangTran0410 Aug 3, 2024
471d126
rename
HoangTran0410 Aug 5, 2024
80cd7a7
update
HoangTran0410 Aug 5, 2024
824d31d
update UI
HoangTran0410 Aug 5, 2024
4c6a590
update UI
HoangTran0410 Aug 5, 2024
3eaabc4
search
HoangTran0410 Aug 5, 2024
675a12e
hover modal
HoangTran0410 Aug 5, 2024
6c37d65
fix
HoangTran0410 Aug 5, 2024
5d29773
clean
HoangTran0410 Aug 5, 2024
0e19332
fix
HoangTran0410 Aug 5, 2024
78d3ffd
update
HoangTran0410 Aug 6, 2024
2797164
.
HoangTran0410 Aug 6, 2024
745856c
refactor insta
HoangTran0410 Aug 6, 2024
1372819
fix fb avatar expired
HoangTran0410 Aug 7, 2024
619382c
hin
HoangTran0410 Aug 7, 2024
72ee8bc
Merge branch 'dev' of https://github.com/HoangTran0410/useful-script …
HoangTran0410 Aug 7, 2024
866a756
clear interval
HoangTran0410 Aug 7, 2024
67f1b7c
WIP
HoangTran0410 Aug 7, 2024
2016be0
WIP
HoangTran0410 Aug 7, 2024
14f68c8
more info
HoangTran0410 Aug 8, 2024
4d7e01f
WIP
HoangTran0410 Aug 8, 2024
887c909
fix
HoangTran0410 Aug 9, 2024
2f78143
auto remove spam posts in group
HoangTran0410 Aug 9, 2024
4e779a0
remove log err
HoangTran0410 Aug 12, 2024
db82101
update shortcut
HoangTran0410 Aug 14, 2024
3dbc68d
backup plan
HoangTran0410 Aug 14, 2024
43427b5
fix
HoangTran0410 Aug 15, 2024
9e3c8ce
minor fix
HoangTran0410 Aug 15, 2024
61bcaf5
fix decode
HoangTran0410 Aug 21, 2024
8137e92
fix trusted html
HoangTran0410 Aug 22, 2024
2239749
fb-aio
HoangTran0410 Aug 22, 2024
bed8cb5
update
HoangTran0410 Aug 22, 2024
c13298e
fix + douyin batch
HoangTran0410 Aug 22, 2024
f386174
update readme + changelogs
HoangTran0410 Aug 22, 2024
6cbdb45
remove test
HoangTran0410 Aug 22, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README-en.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ Try online [Here](https://useful-scripts-extension.github.io/useful-script/popup

Current Versions:

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

<details>
<summary>Old versions</summary>

- <del>v1.69: small update (14/07/2024)</del>
- <del>v1.7: tiktok update (28/07/2024)</del>
- <del>v1.68: big facebook update (01/07/2024)</del>
- <del>v1.67 - huge update (29/05/2024)</del>
- <del>v1.66 - big update (27/04/2024)</del>
- <del>v1.67: huge update (29/05/2024)</del>
- <del>v1.66: big update (27/04/2024)</del>
- <del>v1.65-hotfix (08/04/2024)</del>
- <del>v1.64-hotfix (07/04/2024)</del>
- <del>v1.63 (03/04/2024)</del>
Expand Down Expand Up @@ -69,7 +69,7 @@ Current Versions:

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

[![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)
[![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)

## For developer (Demo)

Expand Down
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
- [Dành cho dev (Demo)](#dành-cho-dev-demo)
- [Contribute](#contribute)

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

## Giới thiệu

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

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

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

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

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

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) và [FBMediaDownloader](https://github.com/HoangTran0410/FBMediaDownloader)

[![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)
[![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)

## Dành cho dev (Demo)

Expand Down
Binary file added _metadata/generated_indexed_rulesets/_ruleset1
Binary file not shown.
4 changes: 2 additions & 2 deletions config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export default {
version_check:
"https://raw.githubusercontent.com/HoangTran0410/useful-script/main/manifest.json",
source_code: "https://github.com/HoangTran0410/useful-script",
"https://raw.githubusercontent.com/Useful-Scripts-Extension/useful-script/main/manifest.json",
source_code: "https://github.com/Useful-Scripts-Extension/useful-script",
store:
"https://chrome.google.com/webstore/devconsole/ad27ff83-24b1-4348-810d-9cfdc30a5331/heoejcamgchindphgghdhmjpgmldnepl/edit/status",
};
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

<body>
<script>
window.location.href = "https://hoangtran0410.github.io/useful-script/popup/popup.html"
window.location.href = "https://Useful-Scripts-Extension.github.io/useful-script/popup/popup.html"
</script>
</body>

Expand Down
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"manifest_version": 3,
"name": "Useful Scripts",
"description": "Scripts that can make your life faster and better",
"homepage_url": "https://github.com/HoangTran0410/useful-script",
"version": "1.7",
"homepage_url": "https://github.com/Useful-Scripts-Extension/useful-script",
"version": "1.8",
"icons": {
"16": "./assets/icon16.png",
"32": "./assets/icon32.png",
Expand Down
31 changes: 27 additions & 4 deletions md/CHANGELOGS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
## Change logs

<details>
<summary>v1.8 - 22/08/2024</summary>

- Facebook
- NEW / SUPER HOT: Facebook All in one [web](https://facebook-all-in-one.com)
- NEW: auto duyệt bài spam group facebook [source](/scripts/fb_autoRemoveSpamPostGroup.js)

- Douyin
- NEW: batch download [source](/scripts/douyin_batchDownload.js)

- Google
- FIX: download private (shared to you) videos that dont have download button [source](/scripts/ggdrive_downloadVideo.js)

- Youtube
- FIX: change country [source](/scripts/youtube_changeCountry.js)

- More
- FIX: show hidden fields [source](/scripts/showHiddenFields.js)
- FIX: dino hack [source](/scripts/dino_hack.js)
- FIX: create invisible text (web version) [source](/scripts/createInvisibleText.js)

</details>

<details>
<summary>v1.7 - 28/07/2024</summary>

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

- Merge request
- [fix: 🐛 fix fireship_vip script](https://github.com/HoangTran0410/useful-script/pull/28)
- [fix: 🐛 fix fireship_vip script](https://github.com/Useful-Scripts-Extension/useful-script/pull/28)
- [feat: youglish search
](https://github.com/HoangTran0410/useful-script/pull/30)
- [feat: youtube download video UI](https://github.com/HoangTran0410/useful-script/pull/31)
- [style: 🪄 beautify ui for viewScriptSource](https://github.com/HoangTran0410/useful-script/pull/32)
](https://github.com/Useful-Scripts-Extension/useful-script/pull/30)
- [feat: youtube download video UI](https://github.com/Useful-Scripts-Extension/useful-script/pull/31)
- [style: 🪄 beautify ui for viewScriptSource](https://github.com/Useful-Scripts-Extension/useful-script/pull/32)
- More shortcuts: google trend, time.is, aiforthat, cobalt, nirsoft

</details>
Expand Down
5 changes: 4 additions & 1 deletion popup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1046,7 +1046,10 @@ async function initShowDonate() {
);
}
if (res.isDenied) {
window.open("https://github.com/HoangTran0410/useful-script", "_blank");
window.open(
"https://github.com/Useful-Scripts-Extension/useful-script",
"_blank"
);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion popup/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ <h3>
<a data-track="donate" target="_blank" href="https://hoangtran0410.github.io/HoangTran0410/DONATE">
<i class="fa-solid fa-mug-saucer"></i> donate
</a>
<a data-track="github" target="_blank" href="https://github.com/HoangTran0410/useful-script">
<a data-track="github" target="_blank" href="https://github.com/Useful-Scripts-Extension/useful-script">
<i class="fa-solid fa-code"></i> source code
</a>
<a data-track="fanpage" target="_blank" href="https://www.facebook.com/groups/1154059318582088">
Expand Down
33 changes: 33 additions & 0 deletions popup/recommend.js
Original file line number Diff line number Diff line change
Expand Up @@ -886,4 +886,37 @@ export const Recommend = {
),
},
},
insta_bulkDownload: {
id: "recommend_fbAIOInstagram",
icon: "https://static.cdninstagram.com/rsrc.php/v3/yI/r/VsNE-OHk_8a.png",
name: {
en: "Instagram - Bulk download",
vi: "Instagram - Tải hàng loạt",
},
description: {
en: "Download all user's media on instagram (video/photo/reels/highlight) on Facebook AIO",
vi: "Tải mọi ảnh/video/reel/highlight của người dùng Instagram với Facebook AIO",
},
badges: [BADGES.new, BADGES.hot],
popupScript: {
onClick: () =>
window.open("https://facebook-all-in-one.com/dist/#/bulk-downloader"),
},
},
facebook_aio_stalker: {
id: "recommend_facebook_aio_stalker",
icon: "/scripts/fb_aio.png",
name: {
en: "Stalk anyone on Facebook AIO",
vi: "Stalk bất cứ ai với Facebook AIO",
},
description: {
en: "Download all Stories, Photos ,Videos, Albums, Reels, Groups, Pages, ... on Facebook AIO",
vi: "Tải mọi thứ Story, Ảnh, Video, Album, Reels, Nhóm, Trang, ... với Facebook AIO",
},
badges: [BADGES.recommend, BADGES.hot],
popupScript: {
onClick: () => window.open("https://facebook-all-in-one.com/"),
},
},
};
11 changes: 7 additions & 4 deletions popup/tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ const tabs = [
s.fb_getAvatarFromUid,
s.fb_exportSaved,
createTitle("--- Hot ---", "--- Nổi bật ---"),
s.fb_autoLike,
s.fb_revealDeletedMessages,
s.fb_moreReactionStory,
s.fb_toggleLight,
Expand All @@ -132,8 +131,11 @@ const tabs = [
s.fb_blockSeenStory,
s.fb_getPostReactionCount,
s.fb_whoIsTyping,
s.fb_autoLike,
s.fb_autoRemoveSpamPostGroup,
// s.fb_blockSeenAndTyping,
createTitle("--- Statistic ---", "--- Thống kê ---"),
R.facebook_aio_stalker,
s.fb_searchGroupForOther,
s.fb_searchPageForOther,
s.fb_searchPostsForOther,
Expand Down Expand Up @@ -168,11 +170,11 @@ const tabs = [
{
...CATEGORY.instagram,
scripts: [
R.insta_bulkDownload,
// s.insta_getAllUserMedia,
s.insta_getUserInfo,
s.insta_injectDownloadBtn,
s.insta_anonymousStoryViewer,
createTitle("--- Bulk Download ---", "--- Tải hàng loạt ---"),
s.insta_getAllUserMedia,
s.insta_getFollowForOther,
],
},
Expand All @@ -197,10 +199,11 @@ const tabs = [
...CATEGORY.tiktok,
scripts: [
createTitle("--- Tiktok ---", "--- Tiktok ---"),
s.tiktok_batchDownload,
s.tiktok_downloadWatchingVideo,
s.tiktok_downloadVideo,
s.tiktok_batchDownload,
createTitle("--- Douyin ---", "--- Douyin ---"),
s.douyin_batchDownload,
s.douyin_downloadWachingVideo,
s.douyin_downloadAllVideoUser,
],
Expand Down
2 changes: 2 additions & 0 deletions scripts/@index.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,3 +171,5 @@ export { default as youtube_changeCountry } from "./youtube_changeCountry.js";
export { default as fb_autoLike } from "./fb_autoLike.js";
export { default as guland_VIP } from "./guland_VIP.js";
export { default as pip_anything } from "./pip_anything.js";
export { default as douyin_batchDownload } from "./douyin_batchDownload.js";
export { default as fb_autoRemoveSpamPostGroup } from "./fb_autoRemoveSpamPostGroup.js";
Binary file not shown.
Binary file added scripts/backup/ext/fb-group-ext/assets/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
32 changes: 32 additions & 0 deletions scripts/backup/ext/fb-group-ext/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"manifest_version": 3,
"name": "Facebook Group Extension",
"description": "Quản lý nhóm facebook",
"version": "1.0",
"action": {
"default_popup": "./popup/index.html"
},
"icons": {
"16": "assets/icon_default_16.png",
"48": "assets/icon_default_48.png",
"128": "assets/icon_default_128.png"
},
"permissions": [
"tabs",
"cookies",
"scripting",
"declarativeNetRequest",
"declarativeNetRequestFeedback",
"declarativeNetRequestWithHostAccess"
],
"host_permissions": ["*://*/*", "<all_urls>"],
"declarative_net_request": {
"rule_resources": [
{
"id": "ruleset_1",
"enabled": true,
"path": "./rules.json"
}
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Quản lý nhóm Facebook</title>

<link rel="stylesheet" href="style.css">
</head>

<body>
<h1>Auto duyệt bài spam group fb</h1>

<h3>Chọn hành động</h3>
<label class="container">Đăng comment
<input type="radio" checked="checked" name="action">
<span class="checkmark"></span>
</label>
<label class="container">Xoá comment
<input type="radio" name="action">
<span class="checkmark"></span>
</label>

<div class="input-container">
<h3>Thời gian chờ (giây):</h3>
<span><i>(ngẫu nhiên trong khoảng)</i></span><br />
<div class="input-row">
<input type="number" min="0" value="5" id="inputWaitMin" /> ➡️ <input type="number" min="0" value="20"
id="inputWaitMax" />
</div>
</div>

<h3>Duyệt tối đa bao nhiêu bài?</h3>
<span><i>(nhập 0 để duyệt hết)</i></span><br />
<input type="number" id="max-posts" value="10">

<button class="button" id="start-btn">Bắt đầu</button>

<script src="main.js"></script>
</body>

</html>
Loading