skhzhang / time-based-themes

Automatically change Firefox's theme based on the time
MIT License
121 stars 13 forks source link

Options page is very hard to find #21

Closed Juraj-Masiar closed 2 years ago

Juraj-Masiar commented 2 years ago

Hello, You should automatically open the Options page after installation, because in Firefox it's so so hard to find it. You can use something like this:

browser.runtime.onInstalled.addListener(async ({reason, previousVersion}) => {
  if (reason === 'install') {
    browser.runtime.openOptionsPage()
  }

Or add a toolbar icon that will open it.

skhzhang commented 2 years ago

Thanks for the feedback! That's a great idea.

I agree, the Options page has definitely been made more difficult to find in recent versions of Firefox (it was easier years ago).

I'll add this once I get the chance.

skhzhang commented 2 years ago

This is fixed in 1.4.0 with c0450bcd3530beeda4a8e5bac37ceb998758d16e. It will open automatically upon install.

Thank you for the suggestion and the code snippet on this. :)