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 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" )
Original file line number Diff line number Diff 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 : {
Original file line number Diff line number Diff 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" ,
Original file line number Diff line number Diff 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} ;
Original file line number Diff line number Diff line change 11export 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+)" ,
You can’t perform that action at this time.
0 commit comments