Block-Site
Block-Site copied to clipboard
Resetting Master password
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?
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:
- Open the extensions option page.
- Open the developer tools by pressing
F12,Ctrl+Shift+Ior right-clicking and selecting "Inspect" - Open the
Consoletab - Paste this piece of JavaScript. (You may need to type
allow pastingfirst):
await (async () => {
const options = await chrome.storage.local.get()
await chrome.storage.local.set({...options, 'sha256': ''});
})()
- Click on
Runand refresh the page. - 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.
You can also do
chrome.storage.local.set({'sha256': ''});