Skip to content

Commit f743942

Browse files
committed
update script export md
1 parent bbf2943 commit f743942

File tree

4 files changed

+52
-49
lines changed

4 files changed

+52
-49
lines changed

md/LIST_SCRIPTS_EN.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<i class="fa-solid fa-magnifying-glass"></i> Search
1+
### Search
22

33
1. [What font](./scripts/whatFont.js)
44

@@ -22,19 +22,19 @@
2222

2323
11. [View Google cache of website](./scripts/googleCache.js)
2424

25-
<i class="fa-solid fa-download"></i> Download
25+
### Download
2626

2727
12. [Download video](./scripts/download_video.js)
2828

2929
13. [Image Downloader](./scripts/download_image.js)
3030

31-
<i class="fa-brands fa-facebook"></i> Facebook
31+
### Facebook
3232

33-
- --- UI ---
33+
--- UI ---
3434

3535
14. [Toggle light fb newfeed](./scripts/fb_toggleLight.js)
3636

37-
- --- Access Token ---
37+
--- Access Token ---
3838

3939
15. [Get fb token full permission (ffb.vn)](./scripts/fb_getTokenFfb.js)
4040

@@ -44,7 +44,7 @@
4444

4545
18. [Get fb Token (m.facebook.com)](./scripts/fb_getTokenMFacebook.js)
4646

47-
- --- Get ID ---
47+
--- Get ID ---
4848

4949
19. [Get fb User ID](./scripts/fb_getUid.js)
5050

@@ -68,15 +68,15 @@
6868

6969
29. [Get all fb User ID from group](./scripts/fb_getAllUidOfGroupMembers.js)
7070

71-
- --- Download ---
71+
--- Download ---
7272

7373
30. [Get avatar from fb user id](./scripts/fb_getAvatarFromUid.js)
7474

7575
31. [Get download link of current fb video](./scripts/fb_downloadCurrentVideo.js)
7676

7777
32. [Download fb album media links](./scripts/fb_downloadAlbumMedia.js)
7878

79-
<i class="fa-brands fa-instagram"></i> Instagram
79+
### Instagram
8080

8181
33. [Enable download instagram photos/videos](./scripts/insta_enableDownloadImage.js)
8282

@@ -90,7 +90,7 @@
9090

9191
38. [Get all images in insta user profile](./scripts/insta_getAllImagesInUserProfile.js)
9292

93-
<i class="fa-brands fa-youtube"></i> Youtube
93+
### Youtube
9494

9595
39. [Download youtube video (bypass 18+)](./scripts/youtube_downloadVideo.js)
9696

@@ -102,15 +102,15 @@
102102

103103
43. [View youtube video dislikes](./scripts/youtube_viewDislikes.js)
104104

105-
<i class="fa-brands fa-github"></i> Github
105+
### Github
106106

107107
44. [Go to first commit](./scripts/github_goToFirstCommit.js)
108108

109109
45. [Open repo in github.dev](./scripts/githubdev.js)
110110

111111
46. [Open repo in github1s.com](./scripts/github1s.js)
112112

113-
Doutu.be
113+
### Doutu.be
114114

115115
47. [Enable download all video](./scripts/doutube_enableDownloadVideo.js)
116116

@@ -120,31 +120,31 @@ Doutu.be
120120

121121
50. [Get all video from user doutu.be profile](./scripts/doutube_getAllVideoInUserProfile.js)
122122

123-
<i class="fa-solid fa-file-pdf"></i> PDF
123+
### PDF
124124

125125
51. [Darkmode for pdf](./scripts/darkModePDF.js)
126126

127127
52. [Web to PDF](./scripts/webToPDF.js)
128128

129-
<i class="fa-solid fa-qrcode"></i> QR Code
129+
### QR Code
130130

131131
53. [Text to QR Code](./scripts/textToQRCode.js)
132132

133133
54. [URL to QR Code](./scripts/webToQRCode.js)
134134

135-
<i class="fa-solid fa-robot"></i> Automation
135+
### Automation
136136

137137
55. [Scroll to very end](./scripts/scrollToVeryEnd.js)
138138

139-
<i class="fa-solid fa-key"></i> Password
139+
### Password
140140

141141
56. [Password generator](./scripts/passwordGenerator.js)
142142

143143
57. [Find shared login](./scripts/search_sharedAccount.js)
144144

145145
58. [View hidden passwords](./scripts/viewHiddenPassword.js)
146146

147-
<i class="fa-solid fa-unlock"></i> Unlock
147+
### Unlock
148148

149149
59. [View cookies](./scripts/viewCookies.js)
150150

@@ -154,15 +154,15 @@ Doutu.be
154154

155155
62. [Re-Enable context menu (right click)](./scripts/reEnableContextMenu.js)
156156

157-
<i class="fa-solid fa-eye"></i> Web UI
157+
### Web UI
158158

159159
63. [Toggle edit page](./scripts/toggleEditPage.js)
160160

161161
64. [Performance Analyzer](./scripts/performanceAnalyzer.js)
162162

163163
65. [Scroll by dragging](./scripts/scrollByDrag.js)
164164

165-
- --- View ---
165+
--- View ---
166166

167167
66. [View all images in web](./scripts/listAllImagesInWeb.js)
168168

@@ -174,7 +174,7 @@ Doutu.be
174174

175175
70. [View source code of selected area](./scripts/viewPartialSource.js)
176176

177-
- --- Remove ---
177+
--- Remove ---
178178

179179
71. [Remove all colors in web](./scripts/removeColours.js)
180180

@@ -184,23 +184,23 @@ Doutu.be
184184

185185
74. [Remove bloat (iframe, embed)](./scripts/removeBloat.js)
186186

187-
- --- Table ---
187+
--- Table ---
188188

189189
75. [Add sort to table](./scripts/table_addSortTable.js)
190190

191191
76. [Add number columns](./scripts/table_addNumberColumn.js)
192192

193193
77. [Swap rows and columns](./scripts/table_swapRowAndColumn.js)
194194

195-
- --- More ---
195+
--- More ---
196196

197197
78. [Highlight internal/external link](./scripts/internalOrExternalLink.js)
198198

199199
79. [Get window size](./scripts/getWindowSize.js)
200200

201201
80. [Let it snow](./scripts/letItSnow.js)
202202

203-
<i class="fa-solid fa-ellipsis"></i> More
203+
### More
204204

205205
81. [Shorten URL (j2team)](./scripts/shortenURL.js)
206206

md/LIST_SCRIPTS_VI.md

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<i class="fa-solid fa-magnifying-glass"></i> Tìm kiếm
1+
### Tìm kiếm
22

33
1. [Kiểm tra font chữ](./scripts/whatFont.js)
44

@@ -22,19 +22,19 @@
2222

2323
11. [Xem Google cache của trang web](./scripts/googleCache.js)
2424

25-
<i class="fa-solid fa-download"></i> Tải xuống
25+
### Tải xuống
2626

2727
12. [Tải video](./scripts/download_video.js)
2828

2929
13. [Image Downloader - Tải hình ảnh](./scripts/download_image.js)
3030

31-
<i class="fa-brands fa-facebook"></i> Facebook
31+
### Facebook
3232

33-
- --- Giao diện ---
33+
--- Giao diện ---
3434

3535
14. [Bật/tắt đèn fb newfeed](./scripts/fb_toggleLight.js)
3636

37-
- --- Access Token ---
37+
--- Access Token ---
3838

3939
15. [Lấy token fb đủ quyền (ffb.vn)](./scripts/fb_getTokenFfb.js)
4040

@@ -44,7 +44,7 @@
4444

4545
18. [Lấy fb token (m.facebook.com)](./scripts/fb_getTokenMFacebook.js)
4646

47-
- --- Lấy ID ---
47+
--- Lấy ID ---
4848

4949
19. [Lấy fb User ID](./scripts/fb_getUid.js)
5050

@@ -68,15 +68,15 @@
6868

6969
29. [Lấy tất cả fb user ID từ group](./scripts/fb_getAllUidOfGroupMembers.js)
7070

71-
- --- Tải xuống ---
71+
--- Tải xuống ---
7272

7373
30. [Tải avatar từ fb user id](./scripts/fb_getAvatarFromUid.js)
7474

7575
31. [Tải video fb đang xem](./scripts/fb_downloadCurrentVideo.js)
7676

7777
32. [Tải link ảnh/video từ album fb](./scripts/fb_downloadAlbumMedia.js)
7878

79-
<i class="fa-brands fa-instagram"></i> Instagram
79+
### Instagram
8080

8181
33. [Cho phép chuột phải tải ảnh/video instagram](./scripts/insta_enableDownloadImage.js)
8282

@@ -90,7 +90,7 @@
9090

9191
38. [Tải tất cả ảnh insta user profile](./scripts/insta_getAllImagesInUserProfile.js)
9292

93-
<i class="fa-brands fa-youtube"></i> Youtube
93+
### Youtube
9494

9595
39. [Tải video youtube (bypass 18+)](./scripts/youtube_downloadVideo.js)
9696

@@ -102,15 +102,15 @@
102102

103103
43. [Xem lượng dislike video youtube](./scripts/youtube_viewDislikes.js)
104104

105-
<i class="fa-brands fa-github"></i> Github
105+
### Github
106106

107107
44. [Đi tới commit đầu tiên](./scripts/github_goToFirstCommit.js)
108108

109109
45. [Mở repo trong github.dev](./scripts/githubdev.js)
110110

111111
46. [Mở repo trong github1s.com](./scripts/github1s.js)
112112

113-
Doutu.be
113+
### Doutu.be
114114

115115
47. [Bật tải mọi video](./scripts/doutube_enableDownloadVideo.js)
116116

@@ -120,31 +120,31 @@ Doutu.be
120120

121121
50. [Tải tất cả video từ doutu.be profile](./scripts/doutube_getAllVideoInUserProfile.js)
122122

123-
<i class="fa-solid fa-file-pdf"></i> PDF
123+
### PDF
124124

125125
51. [Chế độ tối cho PDF](./scripts/darkModePDF.js)
126126

127127
52. [In web ra PDF](./scripts/webToPDF.js)
128128

129-
<i class="fa-solid fa-qrcode"></i> QR Code
129+
### QR Code
130130

131131
53. [Chuyển chữ thành QRCode](./scripts/textToQRCode.js)
132132

133133
54. [Lấy QRCode cho web hiện tại](./scripts/webToQRCode.js)
134134

135-
<i class="fa-solid fa-robot"></i> Tự động hoá
135+
### Tự động hoá
136136

137137
55. [Cuộn trang xuống cuối cùng](./scripts/scrollToVeryEnd.js)
138138

139-
<i class="fa-solid fa-key"></i> Mật khẩu
139+
### Mật khẩu
140140

141141
56. [Tạo mật khẩu cho trang web](./scripts/passwordGenerator.js)
142142

143143
57. [Tìm tài khoản miễn phí](./scripts/search_sharedAccount.js)
144144

145145
58. [Xem mật khẩu bị ẩn](./scripts/viewHiddenPassword.js)
146146

147-
<i class="fa-solid fa-unlock"></i> Mở khoá
147+
### Mở khoá
148148

149149
59. [Xem cookies](./scripts/viewCookies.js)
150150

@@ -154,15 +154,15 @@ Doutu.be
154154

155155
62. [Bật lại menu chuột phải](./scripts/reEnableContextMenu.js)
156156

157-
<i class="fa-solid fa-eye"></i> Giao diện
157+
### Giao diện
158158

159159
63. [Bật/tắt chế độ chỉnh sửa website](./scripts/toggleEditPage.js)
160160

161161
64. [Phân tích hiệu suất](./scripts/performanceAnalyzer.js)
162162

163163
65. [Cuộn web bằng cách kéo thả](./scripts/scrollByDrag.js)
164164

165-
- --- Xem ---
165+
--- Xem ---
166166

167167
66. [Xem mọi hình ảnh có trong website](./scripts/listAllImagesInWeb.js)
168168

@@ -174,7 +174,7 @@ Doutu.be
174174

175175
70. [Xem mã nguồn của phần bôi đen](./scripts/viewPartialSource.js)
176176

177-
- --- Xoá ---
177+
--- Xoá ---
178178

179179
71. [Xoá màu website](./scripts/removeColours.js)
180180

@@ -184,23 +184,23 @@ Doutu.be
184184

185185
74. [Xoá mọi iframe/embed](./scripts/removeBloat.js)
186186

187-
- --- Bảng ---
187+
--- Bảng ---
188188

189189
75. [Thêm sắp xếp cho bảng](./scripts/table_addSortTable.js)
190190

191191
76. [Thêm cột số thứ tự](./scripts/table_addNumberColumn.js)
192192

193193
77. [Đổi chỗ hàng và cột](./scripts/table_swapRowAndColumn.js)
194194

195-
- --- Khác ---
195+
--- Khác ---
196196

197197
78. [Tô màu cho link](./scripts/internalOrExternalLink.js)
198198

199199
79. [Lấy kích thước trang web](./scripts/getWindowSize.js)
200200

201201
80. [Hiệu ứng tuyết rơi](./scripts/letItSnow.js)
202202

203-
<i class="fa-solid fa-ellipsis"></i> Khác
203+
### Khác
204204

205205
81. [Rút gọn link (j2team)](./scripts/shortenURL.js)
206206

popup/helpers/exportScriptsToMd.js renamed to md/exportScriptsToMd.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,25 @@
1-
import { isTitle, tabs } from "../tabs.js";
1+
import { isTitle, tabs } from "../popup/tabs.js";
22

33
function generateMd(lang = "vi") {
44
let index = 1;
55
let md = tabs
66
.map((tab) => {
7-
let title = tab.name[lang];
7+
let _p = document.createElement("p");
8+
_p.innerHTML = tab.name[lang];
9+
let title = _p.innerText;
10+
811
let scripts = tab.scripts
912
?.map((script) => {
1013
if (isTitle(script)) {
11-
return "\n- " + script.name[lang];
14+
return "\n" + script.name[lang];
1215
}
1316
return `\n ${index++}. [${script.name[lang]}](./scripts/${
1417
script.id
1518
}.js)`;
1619
})
1720
.join("\n");
1821

19-
return `${title}\n${scripts}`;
22+
return `### ${title}\n${scripts}`;
2023
})
2124
.join("\n\n");
2225

popup/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {
1616
refreshSpecialTabs,
1717
getAllTabs,
1818
} from "./tabs.js";
19-
import _ from "./helpers/exportScriptsToMd.js";
19+
import _ from "../md/exportScriptsToMd.js";
2020

2121
const tabDiv = document.querySelector("div.tab");
2222
const contentDiv = document.querySelector("div.content");

0 commit comments

Comments
 (0)