Skip to content

Commit 9d1678b

Browse files
committed
.
1 parent 5bc74b6 commit 9d1678b

File tree

5 files changed

+29
-22
lines changed

5 files changed

+29
-22
lines changed

content-scripts/document_start.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
const { injectScript, baseURL } = await import("./utils.js");
44

55
// injectScript(baseURL + "track_settimeout.js");
6-
injectScript(baseURL + "globals_debugger.js");
6+
// injectScript(baseURL + "globals_debugger.js");
77
injectScript(baseURL + "useful-scripts-utils.js");
88

99
if (location.hostname === "mp3.zing.vn")

popup/helpers/category.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,16 @@ export const CATEGORY = {
2828
id: "hot",
2929
style: { textDecoration: "underline" },
3030
name: {
31-
en: `<i class="fa-brands fa-hotjar" style="color:#1F51FF"></i> Hot`,
32-
vi: `<i class="fa-brands fa-hotjar" style="color:#1F51FF"></i> Nổi bật`,
31+
en: `<i class="fa-brands fa-hotjar fa-flip" style="color:#1F51FF;"></i> Hot`,
32+
vi: `<i class="fa-brands fa-hotjar fa-flip" style="color:#1F51FF;"></i> Nổi bật`,
3333
},
3434
},
3535
new: {
3636
id: "new",
3737
style: { textDecoration: "underline" },
3838
name: {
39-
en: `<i class="fa-solid fa-apple-whole" style="color:#1F51FF"></i> New`,
40-
vi: `<i class="fa-solid fa-apple-whole" style="color:#1F51FF"></i> Mới`,
39+
en: `<i class="fa-solid fa-solid fa-bolt fa-shake" style="color:#1F51FF"></i> New`,
40+
vi: `<i class="fa-solid fa-solid fa-bolt fa-shake" style="color:#1F51FF"></i> Mới`,
4141
},
4242
},
4343
search: {

popup/tabs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ const recommendTab = {
216216
{ name: { en: "--- Same author ---", vi: "--- Cùng tác giả ---" } },
217217
addBadge(
218218
{
219-
icon: "https://lh3.googleusercontent.com/vyTQCufFw3IW24ybIykgBxxvm8GLQ1AvD3eRDGJRsS0HuMd9DQsbHHm_iL6WlPXTCC_hwqkKeKlW63AjBS9DkVF-=w128-h128-e365-rj-sc0x00ffffff",
219+
icon: "https://github.com/HoangTran0410/RevealDeletedFBMessages/raw/master/icons/icon48.png",
220220
name: {
221221
en: "Reveal Deleted FB Message",
222222
vi: "Xem tin nhắn FB bị gỡ",
@@ -231,7 +231,7 @@ const recommendTab = {
231231
),
232232
addBadge(
233233
{
234-
icon: "https://cdn4.iconfinder.com/data/icons/social-messaging-ui-color-shapes-2-free/128/social-facebook-square2-256.png",
234+
icon: "https://www.facebook.com/favicon.ico",
235235
name: { en: "FB Media Downloader", vi: "FB Media Downloader" },
236236
description: {
237237
en: "Tool download media from facebook automatic",

scripts/darkModePDF.js

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,29 @@ export default {
55
vi: "Chế độ tối cho PDF",
66
},
77
description: {
8-
en: "Enable darkmode for PDF",
9-
vi: "Bật chế độ tối cho PDF bạn đang xem",
8+
en: "Enable/Disable darkmode for PDF",
9+
vi: "Bật/Tắt chế độ tối cho PDF bạn đang xem",
1010
},
1111

1212
func: function () {
13-
var cover = document.createElement("div");
14-
let css = `position: fixed;
15-
pointer-events: none;
16-
top: 0;
17-
left: 0;
18-
width: 100vw;
19-
height: 100vh;
20-
background-color: #fffbfbcf;
21-
mix-blend-mode: difference;
22-
z-index: 1;`;
23-
cover.setAttribute("style", css);
24-
document.body.appendChild(cover);
13+
let id = "useful-scripts-darkModePDF";
14+
15+
let old = document.querySelector("#" + id);
16+
if (old) old.remove();
17+
else {
18+
var cover = document.createElement("div");
19+
cover.id = id;
20+
let css = `position: fixed;
21+
pointer-events: none;
22+
top: 0;
23+
left: 0;
24+
width: 100vw;
25+
height: 100vh;
26+
background-color: #fffbfbcf;
27+
mix-blend-mode: difference;
28+
z-index: 99999;`;
29+
cover.setAttribute("style", css);
30+
document.body.appendChild(cover);
31+
}
2532
},
2633
};

scripts/youtube_downloadVideo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export default {
2-
icon: `https://www.google.com/s2/favicons?domain=youtube.com`,
2+
icon: `https://www.youtube.com/s/desktop/ff71ea81/img/favicon_48x48.png`,
33
name: {
44
en: "Download youtube video (bypass 18+)",
55
vi: "Tải video youtube (bypass 18+)",

0 commit comments

Comments
 (0)