MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / backup

Function backup

popup/index.js:943–952  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

941}
942
943async function backup() {
944 trackEvent("BACKUP");
945 const data = {
946 localStorage,
947 chromeStorage: await chrome.storage.local.get(),
948 time: new Date().getTime(),
949 };
950 const name = "useful-script-backup-" + new Date().toISOString() + ".json";
951 UfsGlobal.Utils.downloadData(JSON.stringify(data), name);
952}
953
954async function restore() {
955 const { checkPass } = await import("../scripts/auto_lockWebsite.js");

Callers

nothing calls this directly

Calls 2

trackEventFunction · 0.90
getMethod · 0.80

Tested by

no test coverage detected