Skip to content

Commit 232fa31

Browse files
Merge pull request #2 from HoangTran0410/dev
version 1.3
2 parents 2b00f9b + 8525d67 commit 232fa31

File tree

109 files changed

+16655
-823
lines changed

Some content is hidden

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

109 files changed

+16655
-823
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Donate? Muốn hỗ trợ mình 1 ly cafe <3 [Donate here](https://github.com/Ho
66

77
## Change logs - Lịch sử cập nhât
88

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

1111
[Change logs / Lịch sử cập nhật](/md/CHANGELOGS.md)
1212

@@ -27,7 +27,7 @@ Verion hiện tại: v1.2
2727

2828
## Screenshots - Ảnh chụp màn hình
2929

30-
![screenshot](./assets/screenshots/Screen%20Shot%202022-11-05%20at%2012.10.00.png)
30+
![screenshot](./assets/screenshots/Screen%20Shot%202022-11-27%20at%2022.05.00.png)
3131

3232
## Contribute - Đóng góp
3333

579 Bytes
Binary file not shown.
Loading

backup/content.js

Lines changed: 0 additions & 8 deletions
This file was deleted.

empty_script.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,15 @@ export default {
88
en: "",
99
vi: "",
1010
},
11+
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
1118
blackList: [],
1219
whiteList: [],
13-
20+
runInExtensionContext: false,
1421
func: function () {},
1522
};

manifest.json

Lines changed: 57 additions & 3 deletions
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.2",
5+
"version": "1.3",
66
"icons": {
77
"16": "./assets/icon16.png",
88
"32": "./assets/icon32.png",
@@ -16,10 +16,64 @@
1616
"permissions": [
1717
"tabs",
1818
"scripting",
19-
"storage"
19+
"storage",
20+
"cookies",
21+
"debugger",
22+
"declarativeNetRequest",
23+
"declarativeNetRequestFeedback",
24+
"declarativeNetRequestWithHostAccess"
2025
],
2126
"host_permissions": [
2227
"<all_urls>"
2328
],
24-
"options_page": "./pages/options/options.html"
29+
"options_page": "./pages/options/options.html",
30+
"content_scripts": [
31+
{
32+
"matches": [
33+
"<all_urls>"
34+
],
35+
"js": [
36+
"scripts/content-scripts/document_start.js"
37+
],
38+
"run_at": "document_start"
39+
},
40+
{
41+
"matches": [
42+
"<all_urls>"
43+
],
44+
"js": [
45+
"scripts/content-scripts/document_idle.js"
46+
],
47+
"run_at": "document_idle"
48+
},
49+
{
50+
"matches": [
51+
"<all_urls>"
52+
],
53+
"js": [
54+
"scripts/content-scripts/document_end.js"
55+
],
56+
"run_at": "document_end"
57+
}
58+
],
59+
"web_accessible_resources": [
60+
{
61+
"resources": [
62+
"scripts/content-scripts/*.js",
63+
"scripts/content-scripts/*.css"
64+
],
65+
"matches": [
66+
"<all_urls>"
67+
]
68+
}
69+
],
70+
"declarative_net_request": {
71+
"rule_resources": [
72+
{
73+
"id": "ruleset_1",
74+
"enabled": true,
75+
"path": "scripts/net-request-rules/rules.json"
76+
}
77+
]
78+
}
2579
}

md/CHANGELOGS.md

Lines changed: 83 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,94 @@
11
## Change logs
22

3+
<details>
4+
<summary>v1.3 - 27/11/2022</summary>
5+
6+
- 28 scripts mới:
7+
8+
1. getLinkLuanxt
9+
2. getFavicon
10+
3. download_audio
11+
4. nhaccuatui_downloader
12+
5. zingmp3_downloadMusic
13+
6. zingmp3_oldLayout
14+
7. download_video2
15+
8. download_image
16+
9. fb_checkToken
17+
10. fb_getTokenBussinessLocation
18+
11. fb_getTokenBusinessStudio
19+
12. fb_getTokenCampaigns
20+
13. fb_getTokenLocmai
21+
14. fb_videoDownloader
22+
15. insta_getUserInfo
23+
16. instantgram
24+
17. tiktok_downloadVideo
25+
18. douyin_downloadVideo
26+
19. getAllEmailsInWeb
27+
20. screenshotFullPage
28+
21. webToPDF
29+
22. transfer_sh
30+
23. jsonformatter
31+
24. shortenURL
32+
25. unshorten
33+
26. viewBrowserInfo
34+
27. injectScriptToWebsite
35+
28. visualEvent
36+
37+
- Fix/Update các scripts:
38+
39+
1. archiveToday
40+
2. checkWebDie
41+
3. darkModePDF
42+
4. doutube_downloadWatchingVideo
43+
5. doutube_getAllVideoInUserProfile
44+
6. fb_downloadAlbumMedia
45+
7. fb_getAvatarFromUid
46+
8. fb_getTimelineAlbumId
47+
9. fb_getTokenMFacebook
48+
10. fb_getUid
49+
11. googleCache
50+
12. openWaybackUrl
51+
13. search_sharedAccount
52+
14. shortenURL
53+
15. showTheImages
54+
16. textToQRCode
55+
17. viewCookies
56+
18. youtube_downloadVideo
57+
58+
- Fix/Update extension:
59+
- **hot tab**: hiển thị tất cả scripts có badge 'hot'
60+
- **new tab**: hiển thị tất cả scripts badge 'new'
61+
- **open extension in external popup**: Mở extension sang popup window mới, ko bị tắt popup khi chuyển trang
62+
- **content-script**: document_start, document_idle, document_end
63+
- **useful-scripts-utils**: hỗ trợ dev trong quá trình hack web, tạo script mới :))
64+
- **runInExtensionContext**: script chạy trong extension context sẽ có nhiều quyền hơn, khi fetch không bị lỗi cors, truy cập được các quyền dành riêng cho extension, ...
65+
- **loading UI**: giao diện loading, dành cho các script runInExtensionContext=true
66+
67+
</details>
68+
369
<details>
470
<summary>v1.2 - 08/11/2022</summary>
571

672
- 9 scripts mới:
7-
1. archiveToday
8-
2. cssSelectorViewer
9-
3. download_video2
10-
4. getAllEmailsInWeb
11-
5. payWallKiller
12-
6. showHiddenFields
13-
7. showTheImages
14-
8. viewWebMetaInfo
15-
9. whois
16-
10. youtube nonstop
73+
74+
1. archiveToday
75+
2. cssSelectorViewer
76+
3. download_video2
77+
4. getAllEmailsInWeb
78+
5. payWallKiller
79+
6. showHiddenFields
80+
7. showTheImages
81+
8. viewWebMetaInfo
82+
9. whois
83+
10. youtube nonstop
1784

1885
- Fix các scripts:
19-
1. perfomanceAnalyzer
20-
2. remove cookies
21-
3. view cookies
22-
4. viewPartialSource
23-
5. youtube_downloadVideo
86+
87+
1. perfomanceAnalyzer
88+
2. remove cookies
89+
3. view cookies
90+
4. viewPartialSource
91+
5. youtube_downloadVideo
2492

2593
- Fix extension:
2694
- await in lang.js (bug crash on cent browser)

0 commit comments

Comments
 (0)