-
-
Notifications
You must be signed in to change notification settings - Fork 87
Expand file tree
/
Copy pathbookmark_exporter.js
More file actions
30 lines (26 loc) · 720 Bytes
/
bookmark_exporter.js
File metadata and controls
30 lines (26 loc) · 720 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import { UfsGlobal } from "./content-scripts/ufs_global.js";
export default {
icon: '<i class="fa-solid fa-bookmark fa-lg"></i>',
name: {
en: "Export bookmarks to file",
vi: "Xuất bookmarks ra file",
},
description: {
en: "Export all your browser's bookmarks to JSON file",
vi: "Xuất tất cả bookmarks trong trình duyệt của bạn ra file JSON",
},
changeLogs: {
"2024-04-27": "support download as .json",
},
popupScript: {
onClick: async function () {
chrome.bookmarks.getTree((tree) => {
console.log(tree);
UfsGlobal.Utils.downloadData(
JSON.stringify(tree, null, 4),
"bookmarks.json"
);
});
},
},
};