generated at
remote watch list
scrapbox-watchlist-syncに移行したため、使っていない
hr

scrapbox projectのid リスト
private projectも混じっている
watch listの同期をするときに使う

idとlastAccessedのみ同期するコード
import.js
const res = await fetch("https://scrapbox.io/files/644c4cfafb7a14001be4ea02.json"); const json = await res.json(); const prev = JSON.parse(localStorage.getItem("projectsLastAccessed")); // 一番新しいアクセス日時を採用する const newData = [...Object.keys(json), ...Object.keys(prev)] .map((key) => [key, Math.max(json[key] ?? 0, prev[key] ?? 0)]); localStorage.setItem("projectsLastAccessed", JSON.stringify(Object.fromEntries(newData)));
export.js
const blob = new Blob( [localStorage.getItem("projectsLastAccessed")], { type: "application/json" }, ); const a = document.createElement("a"); a.href = URL.createObjectURL(blob); a.download = "projectsLastAccessed.json"; document.body.append(a); a.click(); a.remove();


#2024-05-03 14:48:07
#2023-04-29 07:48:49
#2023-03-17 06:22:33
#2022-12-14 09:43:59
#2022-11-28 22:13:47
#2022-11-22 09:54:41
#2021-12-22 11:40:22