Skip to content

Commit 910d85a

Browse files
Merge pull request #4 from HoangTran0410/dev
Up version 1.4
2 parents 3316853 + d180472 commit 910d85a

File tree

242 files changed

+13203
-14962
lines changed

Some content is hidden

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

242 files changed

+13203
-14962
lines changed

README-en.md

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
![Logo](/assets/icon128.png)
2+
3+
# Useful scripts - Chrome extension
4+
5+
[Tiếng Việt](./README.md)
6+
7+
Donate? Muốn hỗ trợ mình 1 ly cafe <3 [Donate here](https://github.com/HoangTran0410/HoangTran0410/blob/main/DONATE.md)
8+
9+
## Change logs
10+
11+
Verion: <del>v1.1</del> <del>v1.2</del> <del>v1.3</del> **v1.4** (25/12/2022)
12+
13+
[Change logs](/md/CHANGELOGS.md)
14+
15+
## Overview
16+
17+
an extension includes a lot of small extensions.
18+
19+
- View list scripts [Here](./md/LIST_SCRIPTS_EN.md)
20+
21+
## Install
22+
23+
- Local install - [Watch on youtube](https://www.youtube.com/watch?v=2wFTbDK80g0)
24+
25+
[![How to install](https://img.youtube.com/vi/2wFTbDK80g0/0.jpg)](https://www.youtube.com/watch?v=2wFTbDK80g0)
26+
27+
## Screenshots
28+
29+
![screenshot](./assets/screenshots/ScreensShot%202022-12-25%20at%2020.00.00.png)
30+
31+
## Tutorial (Demo)
32+
33+
[Watch on Youtube](https://www.youtube.com/watch?v=rVbr2dJvVMI&list=PLcZcXUjIE-TS13z4sf1mdzZoc9RHB2djl)
34+
35+
[![Video Tutorial (Demo)](./assets/screenshots/Screenshot_3.png)](https://www.youtube.com/watch?v=rVbr2dJvVMI&list=PLcZcXUjIE-TS13z4sf1mdzZoc9RHB2djl)
36+
37+
## Contribute
38+
39+
Contribute [tại đây (vietnamese)](/md/CONTRIBUTE.md)
40+
41+
## Learn
42+
43+
- Extension Tips
44+
45+
- [muaz-khan/Chrome-Extensions](https://github.com/muaz-khan/Chrome-Extensions)
46+
47+
- [scripting docs](https://developer.chrome.com/docs/extensions/reference/scripting/)
48+
49+
- [focus-mode example](https://github.com/GoogleChrome/chrome-extensions-samples/blob/main/tutorials/focus-mode/background.js)
50+
51+
- [execute popup script in webpage](https://stackoverflow.com/questions/9515704/access-variables-and-functions-defined-in-page-context-using-a-content-script)
52+
53+
- Bookmarks Tips
54+
55+
- [Bookmarklets hay](https://bookmarklet.vercel.app/)
56+
57+
- [Bookmarklets hay 2](https://www.thetechbasket.com/most-useful-bookmarklets/)
58+
59+
- [Blog hongkiat - 100 bookmarklets](https://www.hongkiat.com/blog/100-useful-bookmarklets-for-better-productivity-ultimate-list/)
60+
61+
- [50 useful bookmarklets](https://www.wordzz.com/50-most-useful-bookmarklets/)

README.md

+12-13
Original file line numberDiff line numberDiff line change
@@ -2,44 +2,43 @@
22

33
# Useful scripts - Chrome extension
44

5+
[English](./README-en.md)
6+
57
Donate? Muốn hỗ trợ mình 1 ly cafe <3 [Donate here](https://github.com/HoangTran0410/HoangTran0410/blob/main/DONATE.md)
68

7-
## Change logs - Lịch sử cập nhât
9+
## Lịch sử cập nhật
810

9-
Verion hiện tại: <del>v1.1</del> <del>v1.2</del> **v1.3** (27/11/2022)
11+
Verion hiện tại: <del>v1.1</del> <del>v1.2</del> <del>v1.3</del> **v1.4** (25/12/2022)
1012

11-
[Change logs / Lịch sử cập nhật](/md/CHANGELOGS.md)
13+
[Lịch sử cập nhật](/md/CHANGELOGS.md)
1214

13-
## Overview - Giới thiệu
15+
## Giới thiệu
1416

1517
1 extension chứa 1 đống extensions nhỏ.
1618

1719
- Xem danh sách chức năng [Tại đây](./md/LIST_SCRIPTS_VI.md)
18-
- View list scripts [Here](./md/LIST_SCRIPTS_EN.md)
19-
20-
## Install - Cài đặt
2120

22-
- Chrome Webstore - Coming soon...
21+
## Cài đặt
2322

24-
- Local install - [Watch on youtube](https://www.youtube.com/watch?v=2wFTbDK80g0)
23+
- Cài đặt thủ công - [Xem hướng dẫn (youtube)](https://www.youtube.com/watch?v=2wFTbDK80g0)
2524

2625
[![How to install](https://img.youtube.com/vi/2wFTbDK80g0/0.jpg)](https://www.youtube.com/watch?v=2wFTbDK80g0)
2726

28-
## Screenshots - Ảnh chụp màn hình
27+
## Ảnh chụp màn hình
2928

30-
![screenshot](./assets/screenshots/Screen%20Shot%202022-11-27%20at%2022.05.00.png)
29+
![screenshot](./assets/screenshots/ScreensShot%202022-12-25%20at%2020.00.00.png)
3130

3231
## Tutorial (Demo)
3332

3433
[Watch on Youtube](https://www.youtube.com/watch?v=rVbr2dJvVMI&list=PLcZcXUjIE-TS13z4sf1mdzZoc9RHB2djl)
3534

3635
[![Video Tutorial (Demo)](./assets/screenshots/Screenshot_3.png)](https://www.youtube.com/watch?v=rVbr2dJvVMI&list=PLcZcXUjIE-TS13z4sf1mdzZoc9RHB2djl)
3736

38-
## Contribute - Đóng góp
37+
## Contribute
3938

4039
Contribute [tại đây (vietnamese)](/md/CONTRIBUTE.md)
4140

42-
## Learn - Kiến thức hay
41+
## Kiến thức hay
4342

4443
- Extension Tips
4544

432 Bytes
Binary file not shown.
Loading

empty_script.js

+19-8
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,26 @@ export default {
88
en: "",
99
vi: "",
1010
},
11+
infoLink: "",
1112

12-
// Chọn 1 trong 2 cách, xoá cách không dùng:
13-
14-
// Cách 1: Mở link web trong tab mới, không cần dùng func
15-
link: "",
16-
17-
// Cách 2: Chạy script
1813
blackList: [],
1914
whiteList: [],
20-
runInExtensionContext: false,
21-
func: function () {},
15+
16+
// run (if enable autorun) in web page context
17+
onDocumentStart: () => {},
18+
onDocumentEnd: () => {},
19+
onDocumentIdle: () => {},
20+
21+
// run onclick in extension-popup-page context
22+
onClickExtension: () => {},
23+
24+
// run onclick in content-script context
25+
onClickContentScript: () => {},
26+
27+
// run onclick in web page context
28+
// cannot access to shared or any variable outside of webpage
29+
onClick: () => {},
2230
};
31+
32+
// functions/attributes that other scripts can import and use
33+
export const shared = {};

manifest.json

+12-30
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"manifest_version": 3,
33
"name": "Useful Scripts",
44
"description": "Scripts that can make your life faster and better",
5-
"version": "1.3",
5+
"version": "1.4",
66
"icons": {
77
"16": "./assets/icon16.png",
88
"32": "./assets/icon32.png",
@@ -19,52 +19,34 @@
1919
"storage",
2020
"cookies",
2121
"debugger",
22+
"bookmarks",
2223
"declarativeNetRequest",
2324
"declarativeNetRequestFeedback",
2425
"declarativeNetRequestWithHostAccess"
2526
],
26-
"host_permissions": [
27-
"<all_urls>"
28-
],
27+
"host_permissions": ["<all_urls>"],
2928
"options_page": "./pages/options/options.html",
3029
"content_scripts": [
3130
{
32-
"matches": [
33-
"<all_urls>"
34-
],
35-
"js": [
36-
"scripts/content-scripts/document_start.js"
37-
],
31+
"matches": ["<all_urls>"],
32+
"js": ["scripts/content-scripts/document_start.js"],
3833
"run_at": "document_start"
3934
},
4035
{
41-
"matches": [
42-
"<all_urls>"
43-
],
44-
"js": [
45-
"scripts/content-scripts/document_idle.js"
46-
],
36+
"matches": ["<all_urls>"],
37+
"js": ["scripts/content-scripts/document_idle.js"],
4738
"run_at": "document_idle"
4839
},
4940
{
50-
"matches": [
51-
"<all_urls>"
52-
],
53-
"js": [
54-
"scripts/content-scripts/document_end.js"
55-
],
41+
"matches": ["<all_urls>"],
42+
"js": ["scripts/content-scripts/document_end.js"],
5643
"run_at": "document_end"
5744
}
5845
],
5946
"web_accessible_resources": [
6047
{
61-
"resources": [
62-
"scripts/content-scripts/*.js",
63-
"scripts/content-scripts/*.css"
64-
],
65-
"matches": [
66-
"<all_urls>"
67-
]
48+
"resources": ["scripts/*"],
49+
"matches": ["<all_urls>"]
6850
}
6951
],
7052
"declarative_net_request": {
@@ -76,4 +58,4 @@
7658
}
7759
]
7860
}
79-
}
61+
}

md/CHANGELOGS.md

+104
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,109 @@
11
## Change logs
22

3+
<details>
4+
<summary>v1.4 - 25/12/2022</summary>
5+
6+
- 57 script mới (Tổng 160 scripts):
7+
8+
1. anti_clickjacking
9+
2. changeAudioOutput
10+
3. detect_zeroWidthCharacters
11+
4. dino_hack
12+
5. docDownloader
13+
6. donotBlockMe
14+
7. douyin_downloadAllVideoUser
15+
8. envato_bypassPreview
16+
9. fastDoc
17+
10. fb_antiPhishing
18+
11. fb_downloadCommentVideo
19+
12. fb_downloadWatchingVideo
20+
13. fb_exportSaved
21+
14. fb_invisible_message
22+
15. fb_messengerCount
23+
16. fb_messengerCount_main
24+
17. fb_openAdsActivities
25+
18. fb_openMemories
26+
19. fb_openSaved
27+
20. fb_removeFbclid
28+
21. fb_revealDeletedMessages
29+
22. fb_storySaver
30+
23. fb_toggleNewFeed
31+
24. fb_whoIsTyping
32+
25. freesound_downloadAudio
33+
26. ggDrive_downloadAllVideosInFolder
34+
27. ggdrive_downloadVideo
35+
28. ggdrive_generateDirectLink
36+
29. github_goToAnyCommit
37+
30. google_downloadAllYourData
38+
31. google_mirror
39+
32. insta_injectDownloadBtn
40+
33. insta_storySaver
41+
34. pdfstuffs
42+
35. savevideo_me
43+
36. scribd_bypassPreview
44+
37. scribd_downloadDocuments
45+
38. search_hopamchuan
46+
39. search_musicTreding
47+
40. search_userscript
48+
41. send_shareFiles
49+
42. shopee_topVariation
50+
43. shopee_totalSpendMoney
51+
44. showTheVideos
52+
45. simpleAllowCopy
53+
46. smartPDF
54+
47. studocu_bypassPreview
55+
48. studocu_dl
56+
49. studocu_downs
57+
50. studyphim_unlimited
58+
51. tiki_totalSpendMoney
59+
52. tiktok_downloadUserVideos
60+
53. tiktok_downloadWatchingVideo
61+
54. tiktok_snaptikApp
62+
55. tiktok_snaptikVideo
63+
56. vimeo_downloader
64+
57. whatApp_storySaver
65+
66+
67+
- Fix/Update các scripts:
68+
69+
1: douyin_downloadVideo
70+
2. fb_getAllUidFromFriendsPage
71+
3. fb_getAvatarFromUid
72+
4. fb_getTimelineAlbumId
73+
5. fb_getUid
74+
6. fb_getUidFromUrl
75+
7. fb_toggleLight
76+
8. fb_videoDownloader
77+
9. getAllEmailsInWeb
78+
10. insta_getAllImagesInNewFeed
79+
11. insta_getAllUserMedia
80+
12. scrollToVeryEnd
81+
13. tiktok_downloadVideo
82+
14. zingmp3_oldLayout
83+
84+
- Xóa các scripts:
85+
86+
1: download_video
87+
2. download_video2
88+
3. enableTextSelection
89+
4. fb_getAllVideoId
90+
5. fb_getTokenLocmai
91+
6. github_goToFirstCommit
92+
7. insta_reloaded
93+
8. paywallKiller
94+
9. youtube_popupPlayer
95+
96+
- Fix/Update extension:
97+
98+
- Thêm logic cho các **script tự động chạy** (onDocumentStart, onDocumentEnd, onDocumentIdle)
99+
- Thêm **ô tìm kiếm** script nhanh hơn
100+
- Loại bỏ tab Hot, tab New, Open extension in popup, runInExtensionContext
101+
- Thêm **tab Autorun, tab Tất cả**
102+
- Thêm **infoLink** cho các script (mở trang demo hoặc giới thiệu script)
103+
- Thêm **UsefulScriptGlobalPageContext****content-script** (dùng cho các chức năng tự động chạy)
104+
105+
</details>
106+
3107
<details>
4108
<summary>v1.3 - 27/11/2022</summary>
5109

0 commit comments

Comments
 (0)