Skip to content

Commit

Permalink
Merge pull request #38 from Useful-Scripts-Extension/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
HoangTran0410 authored Aug 22, 2024
2 parents 61a1f88 + 6cbdb45 commit 4af24e3
Show file tree
Hide file tree
Showing 56 changed files with 2,408 additions and 197 deletions.
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)[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

0 comments on commit 4af24e3

Please sign in to comment.