Block-Site icon indicating copy to clipboard operation
Block-Site copied to clipboard

Resetting Master password

Open edomoga1981 opened this issue 2 years ago • 1 comments

Hi, I have been using this fine addon for years on Firefox, mostly to block reddit from myself during work hours. I would like to add more sites to it, but unfortunately I forgot my master password.

In the addon options menu, I cant even check the "Do not ask for the master password to block a new hostname" , because it would require the master password to save the newly changed options.

Is there an option to reset my master password, without resetting all my addon data and settings on Firefox, or a way to have changes in options that add rules not require the master password?

edomoga1981 avatar Sep 13 '23 18:09 edomoga1981

There does not yet seem to be a way to reset the master password. However, you can clear part of the extension's storage to achieve the same thing:

  1. Open the extensions option page.
  2. Open the developer tools by pressing F12, Ctrl+Shift+I or right-clicking and selecting "Inspect"
  3. Open the Console tab
  4. Paste this piece of JavaScript. (You may need to type allow pasting first):
await (async () => {
    const options = await chrome.storage.local.get()
    await chrome.storage.local.set({...options, 'sha256': ''});
})()
  1. Click on Run and refresh the page.
  2. The 'Save Options' button should be available once again.

What the javascript in step 4 does is getting all the options and re-applying them but without the sha256 encoded password, thus resetting it.

SilGosker avatar Sep 16 '23 21:09 SilGosker

You can also do

chrome.storage.local.set({'sha256': ''});

ray-lothian avatar May 07 '25 08:05 ray-lothian