Skip to content

Instantly share code, notes, and snippets.

@Ocyss
Created June 26, 2025 07:09
Show Gist options
  • Select an option

  • Save Ocyss/006665b6dbf59cc62d7a7f1b0edfb378 to your computer and use it in GitHub Desktop.

Select an option

Save Ocyss/006665b6dbf59cc62d7a7f1b0edfb378 to your computer and use it in GitHub Desktop.
扩展storage手动同步.js
await (async()=>{
const l=await chrome.storage.local.get(),s=await chrome.storage.sync.get();
return `await chrome.storage.local.set(${JSON.stringify(l)});await chrome.storage.sync.set(${JSON.stringify(s)});`
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment