{"url":"https://neginegitoro.hatenablog.com/entry/chrome-extension-storage","height":"190","description":"Chrome\u62e1\u5f35\u306e\u958b\u767a\u4e2d\u306b\u30ed\u30fc\u30ab\u30eb\u30b9\u30c8\u30ec\u30fc\u30b8\u306e\u4f7f\u3044\u65b9\u3067\u8a70\u307e\u3063\u305f\u306e\u3067\u30e1\u30e2\u3002 \u516c\u5f0f\u3067\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3067\u308f\u304b\u308a\u306b\u304f\u304b\u3063\u305f\u64cd\u4f5c\u3092\u307e\u3068\u3081\u305f\u3002 \u4efb\u610f\u306e\u30ad\u30fc\u3067\u5024\u3092\u4fdd\u5b58\u3059\u308b \u4efb\u610f\u306e\u30ad\u30fc\u3067\u4fdd\u5b58\u3059\u308b\u305f\u3081\u306b\u306f {[key]: value} \u306e\u3088\u3046\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002 const key = \"YOUR_KEY\" chrome.storage.local.set({ [key]: value }).then(() => { console.log(\"Value is set to \" + value); }); \u5168\u3066\u306e\u30ad\u30fc\u3092\u53d6\u5f97\u3059\u308b null \u3092\u6307\u5b9a\u3059\u308b\u3068\u30b9\u30c8\u30ec\u30fc\u30b8\u306e\u5168\u3066\u306e\u8981\u7d20\u3092\u53d6\u5f97\u3067\u304d\u308b\u3002 const keys = aw\u2026","version":"1.0","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/neginegitoro/","published":"2022-12-27 20:59:59","author_name":"neginegitoro","provider_url":"https://hatena.blog","categories":["Chrome\u62e1\u5f35","JavaScript"],"image_url":null,"blog_url":"https://neginegitoro.hatenablog.com/","blog_title":"\u306d\u304e\u3068\u308d\u653e\u6d6a\u8a18","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fneginegitoro.hatenablog.com%2Fentry%2Fchrome-extension-storage\" title=\"chrome.storage\u306e\u4f7f\u3044\u65b9 - \u306d\u304e\u3068\u308d\u653e\u6d6a\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","type":"rich","title":"chrome.storage\u306e\u4f7f\u3044\u65b9"}