@@ -29,28 +29,30 @@ const tabs = [
29
29
{
30
30
...CATEGORY . search ,
31
31
scripts : [
32
- s . _test ,
33
- s . _ufs_statistic ,
34
- {
35
- id : "recommend_search_userscript" ,
36
- icon : "https://www.userscript.zone/favicon.ico" ,
37
- name : {
38
- en : "Search Userscripts" ,
39
- vi : "Tìm Userscripts" ,
40
- } ,
41
- description : {
42
- en : "Search Userscripts on Usersript.zone" ,
43
- vi : "Tìm Userscripts trên Usersript.zone" ,
44
- } ,
45
-
46
- onClickExtension : function ( ) {
47
- window . open ( "https://www.userscript.zone/" ) ;
48
- } ,
49
- } ,
50
- s . whatFont ,
32
+ // s._test,
33
+ // s._ufs_statistic,
51
34
s . similarWeb ,
35
+ s . similarWeb_bypassLimit ,
52
36
s . search_sharedAccount ,
53
- s . whatWebsiteStack ,
37
+ addBadge (
38
+ {
39
+ id : "recommend_wappalyzer" ,
40
+ icon : "https://www.wappalyzer.com/favicon.ico" ,
41
+ name : {
42
+ en : "Wappalyzer - view website stacks" ,
43
+ vi : "Wappalyzer - Web dùng công nghệ gì?" ,
44
+ } ,
45
+ description : {
46
+ en : "Technology that current website is using" ,
47
+ vi : "Xem những công nghệ/thư viện trang web đang dùng" ,
48
+ } ,
49
+
50
+ onClickExtension : function ( ) {
51
+ window . open ( "https://www.wappalyzer.com/apps/" ) ;
52
+ } ,
53
+ } ,
54
+ BADGES . recommend
55
+ ) ,
54
56
s . whois ,
55
57
s . viewWebMetaInfo ,
56
58
{
@@ -73,6 +75,22 @@ const tabs = [
73
75
s . downDetector ,
74
76
s . openWaybackUrl ,
75
77
s . archiveToday ,
78
+ {
79
+ id : "recommend_search_userscript" ,
80
+ icon : "https://www.userscript.zone/favicon.ico" ,
81
+ name : {
82
+ en : "Search Userscripts" ,
83
+ vi : "Tìm Userscripts" ,
84
+ } ,
85
+ description : {
86
+ en : "Search Userscripts on Usersript.zone" ,
87
+ vi : "Tìm Userscripts trên Usersript.zone" ,
88
+ } ,
89
+
90
+ onClickExtension : function ( ) {
91
+ window . open ( "https://www.userscript.zone/" ) ;
92
+ } ,
93
+ } ,
76
94
] ,
77
95
} ,
78
96
{
@@ -82,7 +100,7 @@ const tabs = [
82
100
s . saveAllVideo ,
83
101
s . vuiz_getLink ,
84
102
s . savevideo_me ,
85
- {
103
+ addBadge ( {
86
104
id : "getLinkLuanxt_newtab" ,
87
105
icon : "https://luanxt.com/get-link-mp3-320-lossless-vip-zing/favicon.ico" ,
88
106
name : {
@@ -96,17 +114,19 @@ const tabs = [
96
114
infoLink : "https://luanxt.com/get-link-mp3-320-lossless-vip-zing/" ,
97
115
onClickExtension : ( ) =>
98
116
window . open ( "https://luanxt.com/get-link-mp3-320-lossless-vip-zing/" ) ,
99
- } ,
100
- s . bookmark_exporter ,
101
- s . twitter_downloadButton ,
117
+ } ) ,
102
118
createTitle ( "--- Photos ---" , "--- Ảnh ---" ) ,
119
+ s . magnify_image ,
120
+ s . auto_redirectLargestImageSrc ,
121
+ s . twitter_downloadButton ,
122
+ s . getFavicon ,
103
123
addBadge (
104
124
{
105
125
id : "recommend_picviewer_ce+" ,
106
126
icon : "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAV1BMVEUAAAD////29vbKysoqKioiIiKysrKhoaGTk5N9fX3z8/Pv7+/r6+vk5OTb29vOzs6Ojo5UVFQzMzMZGRkREREMDAy4uLisrKylpaV4eHhkZGRPT08/Pz/IfxjQAAAAgklEQVQoz53RRw7DIBBAUb5pxr2m3/+ckfDImwyJlL9DDzQgDIUMRu1vWOxTBdeM+onApENF0qHjpkOk2VTwLVEF40Kbfj1wK8AVu2pQA1aBBYDHJ1wy9Cf4cXD5chzNAvsAnc8TjoLAhIzsBao9w1rlVTIvkOYMd9nm6xPi168t9AYkbANdajpjcwAAAABJRU5ErkJggg==" ,
107
127
name : {
108
- en : "Picviewer CE+" ,
109
- vi : "Picviewer CE+" ,
128
+ en : "Picviewer CE+ download images " ,
129
+ vi : "Picviewer CE+ tải ảnh " ,
110
130
} ,
111
131
description : {
112
132
en : "Powerful picture viewing tool online, which can popup/scale/rotate/batch save pictures automatically" ,
@@ -118,7 +138,39 @@ const tabs = [
118
138
} ,
119
139
BADGES . recommend
120
140
) ,
121
- s . getFavicon ,
141
+ addBadge (
142
+ {
143
+ id : "recommend_file_converter" ,
144
+ icon : "https://file-converter.io/favicon.ico" ,
145
+ name : {
146
+ en : "File-converter.io - change image type" ,
147
+ vi : "File-converter.io - chuyển đổi ảnh" ,
148
+ } ,
149
+ description : {
150
+ en : "Powerful tool which allows you to convert and compress files using the context menu in windows explorer." ,
151
+ vi : "Công cụ nén ảnh, đổi định dạng ảnh hàng loạt, trực tiếp bằng chuột phải." ,
152
+ img : "https://file-converter.io/images/file-converter-usage.gif" ,
153
+ } ,
154
+ onClickExtension : ( ) => window . open ( "https://file-converter.io/" ) ,
155
+ } ,
156
+ BADGES . recommend
157
+ ) ,
158
+ addBadge (
159
+ {
160
+ id : "recommend_squoosh_app" ,
161
+ icon : "https://squoosh.app/c/icon-large-maskable-c2078ced.png" ,
162
+ name : {
163
+ en : "Squoosh.app - compress images" ,
164
+ vi : "Squoosh.app - nén ảnh" ,
165
+ } ,
166
+ description : {
167
+ en : "Make images smaller using best-in-class codecs, right in the browser." ,
168
+ vi : "Công cụ nén ảnh mạnh mẽ, giảm kích thước ngay trên trình duyệt" ,
169
+ } ,
170
+ onClickExtension : ( ) => window . open ( "https://squoosh.app/" ) ,
171
+ } ,
172
+ BADGES . recommend
173
+ ) ,
122
174
createTitle ( "--- Music ---" , "--- Nhạc ---" ) ,
123
175
s . spotify_downloadButton ,
124
176
s . soundcloud_downloadMusic ,
@@ -130,6 +182,7 @@ const tabs = [
130
182
s . vimeo_downloader ,
131
183
s . showTheVideos ,
132
184
createTitle ( "--- Document ---" , "--- Tài liệu ---" ) ,
185
+ s . bookmark_exporter ,
133
186
s . tailieu_vn ,
134
187
s . docDownloader ,
135
188
s . scribd_downloadDocuments ,
@@ -308,8 +361,6 @@ const tabs = [
308
361
...CATEGORY . automation ,
309
362
scripts : [
310
363
createTitle ( "--- Utility ---" , "--- Tiện ích ---" ) ,
311
- s . magnify_image ,
312
- s . auto_redirectLargestImageSrc ,
313
364
s . textToQrCode ,
314
365
s . shortenURL ,
315
366
s . unshorten ,
@@ -442,7 +493,7 @@ const tabs = [
442
493
) ;
443
494
} ,
444
495
} ,
445
- {
496
+ addBadge ( {
446
497
id : "recommend_leakCheck" ,
447
498
icon : "https://leakcheck.io/favicon.ico" ,
448
499
name : {
@@ -458,7 +509,7 @@ const tabs = [
458
509
onClickExtension : ( ) => {
459
510
window . open ( "https://okela.fun/" ) ;
460
511
} ,
461
- } ,
512
+ } ) ,
462
513
] ,
463
514
} ,
464
515
{
@@ -487,6 +538,7 @@ const tabs = [
487
538
} ,
488
539
BADGES . recommend
489
540
) ,
541
+ s . whatFont ,
490
542
s . visualEvent ,
491
543
s . listAllImagesInWeb ,
492
544
s . viewAllLinks ,
@@ -724,6 +776,11 @@ function sortScriptsByTab(scripts, _tabs, addTabTitle = true) {
724
776
return result ;
725
777
}
726
778
779
+ const allScriptInTabs = [
780
+ ...tabs . map ( ( tab ) => tab . scripts ) ,
781
+ ...recommendTab . scripts ,
782
+ ] . flat ( ) ;
783
+
727
784
function refreshSpecialTabs ( ) {
728
785
// add data to special tabs
729
786
let recentTab = specialTabs . find ( ( tab ) => tab . id === CATEGORY . recently . id ) ;
@@ -733,12 +790,12 @@ function refreshSpecialTabs() {
733
790
if ( favoriteTab ) favoriteTab . scripts = favoriteScriptsSaver . get ( ) ;
734
791
735
792
let allTab = specialTabs . find ( ( tab ) => tab . id === CATEGORY . all . id ) ;
736
- if ( allTab ) allTab . scripts = sortScriptsByTab ( Object . values ( s ) , tabs ) ;
793
+ if ( allTab ) allTab . scripts = sortScriptsByTab ( allScriptInTabs , tabs ) ;
737
794
738
795
let autoTab = specialTabs . find ( ( tab ) => tab . id === CATEGORY . autorun . id ) ;
739
796
if ( autoTab )
740
797
autoTab . scripts = sortScriptsByTab (
741
- Object . values ( s ) . filter ( ( _ ) => canAutoRun ( _ ) ) ,
798
+ allScriptInTabs . filter ( ( _ ) => canAutoRun ( _ ) ) ,
742
799
tabs
743
800
) ;
744
801
}
0 commit comments