Context Menu Searchの検索設定ファイル
takker.icon用設定ファイル
code:list.json
{
"wikipedia": {
"index": 24,
"name": "Wikipedia",
"keyword": "w",
"multitab": false,
"show": false
},
"oald": {
"index": 29,
"name": "OALD",
"keyword": "o",
"multitab": false,
"show": true
},
"ndl-search-169203": {
"index": 30,
"name": "NDL Search",
"keyword": "",
"multitab": false,
"show": true
},
"longman-e-e": {
"index": 31,
"name": "Longman E-E",
"keyword": "",
"multitab": false,
"show": true
},
"takker": {
"index": 32,
"name": "takker (scrapbox)",
"keyword": "",
"multitab": false,
"show": true
},
"dic.nicovideo": {
"index": 33,
"name": "ニコニコ大百科",
"keyword": "",
"multitab": false,
"show": true
},
"longman-e-j": {
"index": 34,
"name": "Longman E-J",
"keyword": "",
"multitab": false,
"show": true
},
"longman-j-e": {
"index": 35,
"name": "Longman J-E",
"keyword": "",
"multitab": false,
"show": true
}
}
export dataを加工するscript
base64だけ削って返す
code:sh
code:export.ts
type searchEngine = {
index: number;
name: string;
keyword: string;
multitab: boolean;
url: string;
show: boolean;
base64?: string; // なくてもimportできる
};
const text = await Deno.readTextFile(Deno.args0); const json = JSON.parse(text) as Record<string, searchEngine>;
console.log(JSON.stringify(Object.fromEntries(Object.entries(json).map((key, value) => { delete value.base64;
})), null, 2));