Skip to content

Dev #18

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 111 commits into from
Apr 27, 2024
Merged

Dev #18

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
111 commits
Select commit Hold shift + click to select a range
281a7d0
gg download files dont have download btn
Apr 8, 2024
a2b8293
download google document - DONE
HoangTran0410 Apr 8, 2024
a28a86a
update
HoangTran0410 Apr 8, 2024
ddfb770
optimize auto run script
Apr 9, 2024
3940f9a
update hack random
HoangTran0410 Apr 10, 2024
6b75099
fix duck race
HoangTran0410 Apr 10, 2024
a8e118c
add working note
HoangTran0410 Apr 10, 2024
5c6738b
hotfix: bring back ufs global
Apr 10, 2024
9fa511b
magnify image - WIP
Apr 10, 2024
a5097ff
update list of inputs
HoangTran0410 Apr 10, 2024
832f6d0
correct name wheel
HoangTran0410 Apr 10, 2024
577f2ae
,
HoangTran0410 Apr 11, 2024
f9599a7
.
HoangTran0410 Apr 11, 2024
d58dbb8
magnify image
Apr 11, 2024
f52872b
magnify_image, consoleLog_withTime, auto_redirectLargestImageSrc, tex…
Apr 11, 2024
41b7caa
fix
Apr 11, 2024
2194f10
.
Apr 11, 2024
8e2dff7
update
Apr 11, 2024
e8060de
support <image>
HoangTran0410 Apr 11, 2024
4e7ead7
update + remove some unused scripts
Apr 12, 2024
22d22a2
refactor
Apr 12, 2024
deb1f2e
fix
Apr 12, 2024
caeb676
big update
HoangTran0410 Apr 12, 2024
3921c12
notify + scroll end + local magnify img
HoangTran0410 Apr 13, 2024
1c667a4
auto large img
HoangTran0410 Apr 14, 2024
8eb549a
fix largest img
Apr 15, 2024
4ad16a4
update magnify img
Apr 15, 2024
26ff5b6
check null
Apr 15, 2024
102779d
fix get large img
Apr 15, 2024
b325030
resize img - WIP
Apr 15, 2024
23e368f
update magnify image
HoangTran0410 Apr 15, 2024
f1eaf63
update
HoangTran0410 Apr 15, 2024
34852c5
fix
Apr 16, 2024
82cc7a6
magnify ui
Apr 16, 2024
f1d9f5f
add img
Apr 16, 2024
23e2319
fix logic
Apr 16, 2024
0553f1e
fix
Apr 16, 2024
a99495a
no more localstorage
Apr 16, 2024
a324b24
fix active scripts
Apr 16, 2024
77df2bf
remove await
Apr 16, 2024
947b0d2
fix rename UfsGlobal.DEBUG
Apr 16, 2024
034fb95
transition smooth
Apr 16, 2024
daa623e
some update
HoangTran0410 Apr 16, 2024
12e9514
optimize
HoangTran0410 Apr 16, 2024
6dc25c8
fix bug
HoangTran0410 Apr 16, 2024
6376f0c
gstatic font
Apr 17, 2024
580ec9f
fix
Apr 17, 2024
8c260a9
popup animation
Apr 17, 2024
dcdec80
toggle zoom
Apr 17, 2024
7aa3c94
add rules
Apr 17, 2024
9df019a
loading anim
Apr 17, 2024
7284d1a
add googleusercontent
Apr 17, 2024
4aa215f
fix get bg image
Apr 17, 2024
9db7d04
fix anim + get src
Apr 17, 2024
21fde85
loading anim + choose img + fix
HoangTran0410 Apr 18, 2024
da37ebd
hard work magnify image
HoangTran0410 Apr 18, 2024
25f1db0
ufs now in context menu
HoangTran0410 Apr 18, 2024
eeeba07
fix mouse pos iframe
HoangTran0410 Apr 18, 2024
31ffacf
add warning
HoangTran0410 Apr 18, 2024
5290116
update desc
HoangTran0410 Apr 18, 2024
8c873ce
optimize background magnify image
HoangTran0410 Apr 19, 2024
f2592b7
background fetch + getRedirectedUrl
Apr 19, 2024
329cbf5
notify + fix style
Apr 19, 2024
46de108
optimize
Apr 19, 2024
3e02e12
fix zoom + source element
HoangTran0410 Apr 19, 2024
8bdcc85
update
HoangTran0410 Apr 20, 2024
dfbcecf
optmize magnify image
HoangTran0410 Apr 20, 2024
dd2a98d
run auto scripts from background
HoangTran0410 Apr 20, 2024
d896398
fix
HoangTran0410 Apr 20, 2024
c8598d3
add soundcloud rule large img
HoangTran0410 Apr 20, 2024
71ff689
bride to call background script from webpage
HoangTran0410 Apr 20, 2024
e601ed7
fix async fn in background
HoangTran0410 Apr 20, 2024
55d2807
update click count - WIP
HoangTran0410 Apr 20, 2024
97a18ac
.
HoangTran0410 Apr 20, 2024
02c4849
optimize + tracking
HoangTran0410 Apr 21, 2024
54503b7
tracking
HoangTran0410 Apr 21, 2024
1310717
update version - WIP
HoangTran0410 Apr 21, 2024
6f6c512
add shrinkearn.com
HoangTran0410 Apr 22, 2024
14b9f8e
.
HoangTran0410 Apr 22, 2024
871f689
track
Apr 22, 2024
1c4a724
logs for scripts
Apr 23, 2024
12a6a04
ufs statistic graph
Apr 23, 2024
ebaafcb
stacked bar chart
Apr 23, 2024
a03d8e6
update
Apr 23, 2024
5830187
merge 2 graphs
Apr 23, 2024
acb20cc
fix: inject ufsGlobal to popup
Apr 23, 2024
30bf803
set lang prompt
Apr 23, 2024
910c0f2
add show/hide all btn
Apr 23, 2024
6b708b6
WIP
HoangTran0410 Apr 24, 2024
d194336
audio visiualize - WIP
Apr 24, 2024
9964e00
WIP
Apr 24, 2024
a461b6d
WIP visualize music
HoangTran0410 Apr 25, 2024
2f5ac36
update nam+desc
Apr 25, 2024
01b2d19
change insta
Apr 25, 2024
c5d13a0
pip full website
Apr 25, 2024
b1f3a09
test chrome.tts
Apr 25, 2024
7201052
test audio visualize - WIP
Apr 25, 2024
dc11e40
ye it work
Apr 25, 2024
3b33e5c
WIP - visualize music
HoangTran0410 Apr 26, 2024
ae5a687
share audio to other tab
Apr 26, 2024
c827c21
music visualizer
Apr 26, 2024
d52f19a
fix max z-index
Apr 26, 2024
d3c5ff6
add alert
Apr 26, 2024
ac40b83
fix wait for tab to load
Apr 26, 2024
740912f
.
Apr 26, 2024
7ca3b34
fix a lot
HoangTran0410 Apr 26, 2024
7242baa
update
HoangTran0410 Apr 27, 2024
223b185
update
HoangTran0410 Apr 27, 2024
3933d26
update + readme
HoangTran0410 Apr 27, 2024
38c5e9e
comment
HoangTran0410 Apr 27, 2024
39c051d
add change logs
HoangTran0410 Apr 27, 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
21 changes: 16 additions & 5 deletions README-en.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,28 @@

[Tiếng Việt](./README.md)

Donate? Muốn hỗ trợ mình 1 ly cafe <3 [Donate here](https://github.com/HoangTran0410/HoangTran0410/blob/main/DONATE.md)
Donate? For better health and ideas <3 [Donate here](https://github.com/HoangTran0410/HoangTran0410/blob/main/DONATE.md)

## Change logs

Verion hiện tại: <del>v1.1</del> <del>v1.2</del> <del>v1.3</del> <del>v1.4</del> <del>v1.5</del> <del>v1.6</del> **v1.64-hotfix** (03/04/2024)
Versions:

[Change logs](/md/CHANGELOGS.md)
- **v1.66 - big update** (_/2024)
- <del>v1.65-hotfix (08/04/2024)</del>
- <del>v1.64-hotfix (07/04/2024)</del>
- <del>v1.63 (03/04/2024)</del>
- <del>v1.6 (13/03/2024)</del>
- <del>v1.5 (12/07/2023)</del>
- <del>v1.4 (25/12/2024)</del>
- <del>v1.3 (27/11/2024)</del>
- <del>v1.2 (08/11/2022)</del>
- <del>v1.1 (07/11/2022)</del>

[Full change logs](/md/CHANGELOGS.md)

## Overview

an extension includes a lot of small extensions.
An extension includes a lot of small extensions. Make your life easier.

- View list scripts [Here](./md/LIST_SCRIPTS_EN.md)

Expand All @@ -30,7 +41,7 @@ an extension includes a lot of small extensions.

![screenshot](./assets/screenshots/ScreensShot%202022-12-25%20at%2020.00.00.png)

## Tutorial (Demo)
## For developer (Demo)

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

Expand Down
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,24 @@ Donate? Muốn hỗ trợ mình 1 ly cafe <3 [Donate here](https://github.com/Ho

## Lịch sử cập nhật

Verion hiện tại: <del>v1.1</del> <del>v1.2</del> <del>v1.3</del> <del>v1.4</del> <del>v1.5</del> <del>v1.6</del> <del>v1.64-hotfix</del> **v1.65-hotfix** (08/04/2024)
Verion hiện tại:

- **v1.66 - big update** (_/2024)
- <del>v1.65-hotfix (08/04/2024)</del>
- <del>v1.64-hotfix (07/04/2024)</del>
- <del>v1.63 (03/04/2024)</del>
- <del>v1.6 (13/03/2024)</del>
- <del>v1.5 (12/07/2023)</del>
- <del>v1.4 (25/12/2024)</del>
- <del>v1.3 (27/11/2024)</del>
- <del>v1.2 (08/11/2022)</del>
- <del>v1.1 (07/11/2022)</del>

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

## Giới thiệu

1 extension chứa 1 đống extensions nhỏ.
1 tiện ích chứa rất nhiều chức năng nhỏ. Giúp cuộc sống dễ dàng hơn.

- Xem danh sách chức năng [Tại đây](./md/LIST_SCRIPTS_VI.md)

Expand All @@ -30,7 +41,7 @@ Verion hiện tại: <del>v1.1</del> <del>v1.2</del> <del>v1.3</del> <del>v1.4</

![screenshot](./assets/screenshots/ScreensShot%202022-12-25%20at%2020.00.00.png)

## Tutorial (Demo)
## Dành cho dev (Demo)

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

Expand Down
Binary file modified _metadata/generated_indexed_rulesets/_ruleset1
Binary file not shown.
12 changes: 11 additions & 1 deletion empty_script.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ export default {
},
infoLink: "",

changeLogs: {
["version"]: {
["date"]: "description",
},
},

blackList: [],
whiteList: [],

Expand All @@ -20,19 +26,23 @@ export default {

// run (if enable autorun) in web page context
onDocumentStart: () => {},
onDocumentEnd: () => {},
onDocumentIdle: () => {},
onDocumentEnd: () => {},

// run onclick in extension-popup-page context
onClickExtension: () => {},

// run onclick in content-script context
onClickContentScript: () => {},
onDocumentStartContentScript: () => {},
onDocumentIdleContentScript: () => {},
onDocumentEndContentScript: () => {},

// run onclick in web page context
// cannot access to shared or any variable outside of webpage
onClick: () => {},
};

// functions/attributes that other scripts can import and use
// can only use in popup context (onClickExtension)
export const shared = {};
38 changes: 18 additions & 20 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifest_version": 3,
"name": "Useful Scripts",
"description": "Scripts that can make your life faster and better",
"version": "1.65",
"version": "1.66",
"icons": {
"16": "./assets/icon16.png",
"32": "./assets/icon32.png",
Expand All @@ -14,18 +14,32 @@
"default_icon": "./assets/icon32.png"
},
"permissions": [
"tts",
"power",
"tabs",
"scripting",
"storage",
"cookies",
"debugger",
"activeTab",
"downloads",
"bookmarks",
"scripting",
"tabCapture",
"contextMenus",
"desktopCapture",
"webNavigation",
"notifications",
"unlimitedStorage",
"declarativeNetRequest",
"declarativeNetRequestFeedback",
"declarativeNetRequestWithHostAccess"
],
"host_permissions": ["<all_urls>"],
"options_page": "./pages/options/options.html",
"background": {
"service_worker": "scripts/background-scripts/background-script.js",
"type": "module"
},
"content_scripts": [
{
"matches": ["<all_urls>"],
Expand All @@ -38,29 +52,13 @@
{
"matches": ["<all_urls>"],
"js": [
"scripts/content-scripts/scripts/ufs_global_webpage_context.js",
"scripts/content-scripts/run_scripts.js"
"scripts/content-scripts/ufs_global.js",
"scripts/content-scripts/page_scripts.js"
],
"run_at": "document_start",
"world": "MAIN",
"match_origin_as_fallback": true,
"match_about_blank": true
},
{
"matches": ["<all_urls>"],
"js": ["scripts/content-scripts/document_idle.js"],
"run_at": "document_idle",
"world": "MAIN",
"match_origin_as_fallback": true,
"match_about_blank": true
},
{
"matches": ["<all_urls>"],
"js": ["scripts/content-scripts/document_end.js"],
"run_at": "document_end",
"world": "MAIN",
"match_origin_as_fallback": true,
"match_about_blank": true
}
],
"web_accessible_resources": [
Expand Down
109 changes: 107 additions & 2 deletions md/CHANGELOGS.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,112 @@
## Change logs

<details>
<summary>v1564-hotfix - 08/04/2024</summary>
<summary>v1.66 - 27/04/2024</summary>

### CHỨC NĂNG MỚI

- Tự động tìm và xem ảnh lớn nhất (hỗ trợ gần 100 trang web) [source](/scripts/magnify_image.js)

- Phóng to bất kỳ ảnh nào trong bất kỳ trang web nào Kết hợp tự động tìm ảnh lớn nhất để xem. [source](/scripts/auto_redirectLargestImageSrc.js)

- Picture-in-picture toàn trang web (thay vì chỉ video) [source](/scripts/pip_fullWebsite.js)

- Hack duck race [source](/scripts/duckRace_cheat.js), wheel of names [source](/scripts/wheelOfNames_hack.js)

- Copy file google sheet không cho phép tải [source](/scripts/ggdrive_copySheetText.js)

- Tải file google docs không cho phép tải [source](/scripts/ggdrive_downloadDoc.js)

- Chặn "đã xem" trong instagram story [source](/scripts/insta_anonymousStoryViewer.js)

- remove web limit => cho phép copy, chuột phải trong mọi trang web [source](/scripts/removeWebLimit.js)

- bypass limit similarweb.com [source](/scripts/similarWeb_bypassLimit.js)

### SỬA CHỨC NĂNG CŨ

- Fix Tải hàng loạt tiktok [source](/scripts/tiktok_batchDownload.js)

- Fix tải video tiktok đang xem [source](/scripts/tiktok_downloadWatchingVideo.js)

- Xuất bookmarks ra file json [source](/scripts/bookmark_exporter.js)

- Tối ưu downDetector - thống kê sự cố web [source](/scripts/downDetector.js)

- Tối ưu "Lấy tất cả fb uid trong trang fb tìm kiếm" -> nhanh hơn 1000 lần [source](/scripts/fb_getAllUidFromFbSearch.js)

- Fix "Lấy tất cả member uid từ group fb" [source](/scripts/fb_getAllUidOfGroupMembers.js)

- Fix "Xem ai đang nhắn tin cho bạn" -> chỉ dùng được cho cuộc trò chuyện không mã hoá [source](/scripts/fb_whoIsTyping.js)

- fix studocu bypass preview - xoá popup, xoá hiệu ứng làm mờ [source](/scripts/studocu_bypassPreview.js)

- fix tải file doc trên tailieu.vn [source](/scripts/tailieu_vn.js)

- nhúng script vào bất kỳ trang web nào [source](/scripts/injectScriptToWebsite.js)

- optimize tự động scroll tới cuối web [source](/scripts/scrollToVeryEnd.js)

- tối ưu giải mã link rút gọn [source](/scripts/unshorten.js)

- tối ưu shorten URL [source](/scripts/shortenURL.js)

- new "text to QRCode" [source](/scripts/textToQrCode.js)

- Tối ưu whatFont - check font chữ web [source](/scripts/whatFont.js)

### XOÁ CHỨC NĂNG

- tải video comment facebook -> có thể dùng chức năng "tải video fb đang xem" thay thế

- get token m.facebook.com => không còn dùng được

- Tải tất cả ảnh new feed instagram => không ổn định

- Tải tất cả ảnh profile user instagram (scroll) => không ổn định, dùng chức năng tải bằng API thay thế.

- Bật lại menu chuột phải => dùng remove web limit thay thế

- các chức năng doutu.be

- image downloader/show the images -> gợi ý những tool dễ sử dụng hơn

- bypass trang preview của envato - không còn dùng được

- scroll by drag

- fastDoc

- tải story whatapp

### TỐI ƯU KHÁC

- giảm thời gian khởi động

- chon ngôn ngữ

- hình demo từng chức năng

- changelogs từng chức năng

- sắp xếp lại

### NHỮNG CON SỐ BIẾT NÓI

- 30 ngày

- 156 files được thêm/sửa/xoá

- 3.972 dòng code được xoá

- 11.768 dòng code mới

[Tất cả Chức năng](./LIST_SCRIPTS_VI.md)

</details>

<details>
<summary>v1.65-hotfix - 08/04/2024</summary>

Fix các chức năng tự động chạy

Expand Down Expand Up @@ -151,7 +256,7 @@
- Loại bỏ tab Hot, tab New, Open extension in popup, runInExtensionContext
- Thêm **tab Autorun, tab Tất cả**
- Thêm **infoLink** cho các script (mở trang demo hoặc giới thiệu script)
- Thêm **UsefulScriptGlobalPageContext** và **content-script** (dùng cho các chức năng tự động chạy)
- Thêm **UfsGlobal** và **content-script** (dùng cho các chức năng tự động chạy)

</details>

Expand Down
Loading