Skip to content

hotfix isolated world manifest.json + a lot of new features + fix bugs #15

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 40 commits into from
Apr 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
37626d2
copy code from h5player
Mar 26, 2024
a8a7687
add fireship
Mar 27, 2024
9ed3613
update yt5s
Mar 27, 2024
c39ec6c
add greasyfork link
Mar 27, 2024
2b545f2
remove saveAllVideo in youtube section
Mar 27, 2024
5d7f96b
fix luanxt - md5 - WIP
Mar 27, 2024
9715ed7
add /*html*/
Mar 28, 2024
2ca742d
add vuiz
Mar 28, 2024
4101bda
update display
Mar 28, 2024
d725892
optimize
Mar 28, 2024
5c93ae6
update
Mar 28, 2024
92365de
gg drive download pdf + trusted html + scroll main element
HoangTran0410 Mar 28, 2024
37e798c
fix
HoangTran0410 Mar 28, 2024
72ce9fc
gg drive ppt + pdf
Mar 29, 2024
bf2fe4d
note
Mar 29, 2024
708f46d
update + fix
HoangTran0410 Mar 29, 2024
4192924
little update
HoangTran0410 Mar 30, 2024
75599dc
fix saveme
HoangTran0410 Mar 30, 2024
1f7a05c
optomize: lazy load
HoangTran0410 Mar 30, 2024
bb3706a
add tubemp3.to
HoangTran0410 Mar 30, 2024
2dee784
soundcloud
HoangTran0410 Mar 30, 2024
0a2b1ce
fix soundcloud
HoangTran0410 Mar 30, 2024
998161c
youtube local download - WIP
HoangTran0410 Mar 30, 2024
0a1cd79
working note
HoangTran0410 Mar 30, 2024
379de63
youtube local downloader - WIP
HoangTran0410 Mar 30, 2024
eaaca9d
youtube local downloader - WIP
HoangTran0410 Mar 30, 2024
c9086de
big update
HoangTran0410 Mar 31, 2024
3f8ef17
fix bugs
HoangTran0410 Mar 31, 2024
5427bd8
update
HoangTran0410 Mar 31, 2024
a24d960
update zing
Apr 1, 2024
fbb0897
optimize
Apr 1, 2024
759efa9
oh no
Apr 1, 2024
4ddf80f
WIP
Apr 1, 2024
eaa5765
file saver - WIP
Apr 1, 2024
f62e665
.
HoangTran0410 Apr 1, 2024
a1e0594
fix qrcode
Apr 2, 2024
b473ec5
remove unused code
Apr 2, 2024
a15860c
optimize
HoangTran0410 Apr 2, 2024
5ec5d24
fix isolated world for ufs_global_webpage_context
HoangTran0410 Apr 2, 2024
2edde7a
remove dev features
HoangTran0410 Apr 2, 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
1 change: 1 addition & 0 deletions empty_script.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export default {
description: {
en: "",
vi: "",
img: "",
},
infoLink: "",

Expand Down
15 changes: 12 additions & 3 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,29 @@
"host_permissions": ["<all_urls>"],
"options_page": "./pages/options/options.html",
"content_scripts": [
{
"matches": ["<all_urls>"],
"js": ["scripts/content-scripts/scripts/ufs_global_webpage_context.js"],
"run_at": "document_start",
"world": "MAIN"
},
{
"matches": ["<all_urls>"],
"js": ["scripts/content-scripts/document_start.js"],
"run_at": "document_start"
"run_at": "document_start",
"world": "ISOLATED"
},
{
"matches": ["<all_urls>"],
"js": ["scripts/content-scripts/document_idle.js"],
"run_at": "document_idle"
"run_at": "document_idle",
"world": "ISOLATED"
},
{
"matches": ["<all_urls>"],
"js": ["scripts/content-scripts/document_end.js"],
"run_at": "document_end"
"run_at": "document_end",
"world": "ISOLATED"
}
],
"web_accessible_resources": [
Expand Down
21 changes: 0 additions & 21 deletions popup/helpers/category.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,6 @@ export const CATEGORY = {
vi: `<i class="fa-solid fa-play fa-beat-fade" style="color:#1F51FF"></i> Tự động chạy`,
},
},
ai: {
id: "ai",
name: {
en: `<i class="fa-solid fa-robot"></i> AI`,
vi: `<i class="fa-solid fa-robot"></i> AI`,
},
},
search: {
id: "search",
name: {
Expand Down Expand Up @@ -88,20 +81,6 @@ export const CATEGORY = {
vi: `<i class="fa-brands fa-tiktok"></i> Tiktok`,
},
},
shopping: {
id: "shopping",
name: {
en: `<i class="fa-solid fa-cart-shopping"></i> Shopping`,
vi: `<i class="fa-solid fa-cart-shopping"></i> Mua sắm`,
},
},
github: {
id: "github",
name: {
en: `<i class="fa-brands fa-github"></i> Github`,
vi: `<i class="fa-brands fa-github"></i> Github`,
},
},
automation: {
id: "automation",
name: {
Expand Down
5 changes: 4 additions & 1 deletion popup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,10 @@ function createScriptButton(script, isFavorite = false) {
// tooltip
const tooltip = document.createElement("span");
tooltip.classList.add("tooltiptext");
tooltip.innerText = t(script.description);
tooltip.innerHTML = t(script.description);
if (script.description?.img) {
tooltip.innerHTML += `<img src="${script.description.img}" style="width:95%" />`;
}
button.appendChild(tooltip);

buttonContainer.appendChild(button);
Expand Down
4 changes: 4 additions & 0 deletions popup/main.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
import("./index.js").then(() => {
document.querySelector("#loading-fullscreen")?.remove();
});

import("../scripts/content-scripts/scripts/ufs_global_webpage_context.js").then(() => {
console.log("loaded ufs_global_webpage_context")
})
4 changes: 1 addition & 3 deletions popup/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,7 @@ <h3 class="modal-title">Modal Title</h3>
<div class="loader"></div>
</div>

<script src="../scripts/content-scripts/scripts/ufs_global_webpage_context.js"></script>
<!-- <script type="module" src="./index.js"></script> -->
<script src="main.js"></script>
</body>

</html>
</html>
3 changes: 2 additions & 1 deletion popup/styles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ a:hover {
border-radius: 6px;
padding: 5px;
pointer-events: none;
width: calc(100vw - 40px);

/* Position the tooltip */
position: absolute;
Expand Down Expand Up @@ -536,4 +537,4 @@ a:hover {
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
background: #555;
}
}
Loading