Skip to content

Updating the name or value of a feature of option in our menu? ‐ Import people's old storage!

ImprovedTube edited this page Sep 2, 2023 · 1 revision

migrating an updated setting stored on many computers still, so that they dont need to click the button again:

  • find this is in background.js @ if(installed.reason == 'update'){...)

chrome.storage.local.get('feature or setting(old name)', function (result) { if (result.feature or setting(old name) === '/value or option'){ chrome.storage.local.set({feature or setting(new name):'value or option(new name)'}); }});

(this can be removed after the next update. Yet can stay extended as computers are fast.)