File tree Expand file tree Collapse file tree 5 files changed +29
-22
lines changed Expand file tree Collapse file tree 5 files changed +29
-22
lines changed Original file line number Diff line number Diff line change 3
3
const { injectScript, baseURL } = await import ( "./utils.js" ) ;
4
4
5
5
// injectScript(baseURL + "track_settimeout.js");
6
- injectScript ( baseURL + "globals_debugger.js" ) ;
6
+ // injectScript(baseURL + "globals_debugger.js");
7
7
injectScript ( baseURL + "useful-scripts-utils.js" ) ;
8
8
9
9
if ( location . hostname === "mp3.zing.vn" )
Original file line number Diff line number Diff line change @@ -28,16 +28,16 @@ export const CATEGORY = {
28
28
id : "hot" ,
29
29
style : { textDecoration : "underline" } ,
30
30
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` ,
33
33
} ,
34
34
} ,
35
35
new : {
36
36
id : "new" ,
37
37
style : { textDecoration : "underline" } ,
38
38
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` ,
41
41
} ,
42
42
} ,
43
43
search : {
Original file line number Diff line number Diff line change @@ -216,7 +216,7 @@ const recommendTab = {
216
216
{ name : { en : "--- Same author ---" , vi : "--- Cùng tác giả ---" } } ,
217
217
addBadge (
218
218
{
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 " ,
220
220
name : {
221
221
en : "Reveal Deleted FB Message" ,
222
222
vi : "Xem tin nhắn FB bị gỡ" ,
@@ -231,7 +231,7 @@ const recommendTab = {
231
231
) ,
232
232
addBadge (
233
233
{
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 " ,
235
235
name : { en : "FB Media Downloader" , vi : "FB Media Downloader" } ,
236
236
description : {
237
237
en : "Tool download media from facebook automatic" ,
Original file line number Diff line number Diff line change @@ -5,22 +5,29 @@ export default {
5
5
vi : "Chế độ tối cho PDF" ,
6
6
} ,
7
7
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" ,
10
10
} ,
11
11
12
12
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
+ }
25
32
} ,
26
33
} ;
Original file line number Diff line number Diff line change 1
1
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 ` ,
3
3
name : {
4
4
en : "Download youtube video (bypass 18+)" ,
5
5
vi : "Tải video youtube (bypass 18+)" ,
You can’t perform that action at this time.
0 commit comments