Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: create a local "per tab" scope for the extension #163

Open
nvxos opened this issue Jul 20, 2023 · 1 comment
Open

feat: create a local "per tab" scope for the extension #163

nvxos opened this issue Jul 20, 2023 · 1 comment

Comments

@nvxos
Copy link

nvxos commented Jul 20, 2023

Hey, love the extension!
I noticed it affects all the tabs of the browser and since I often have some background videos or streams playing in other tabs on my other monitors I don't want the extension to affect them too.
Most playback speed or volume control extensions only affects the tab in focus when using the extension, Dark Reader also has some kind of global + local toggling system (even though for the local scope for this one it's on a "per website" basis, but kinda the same idea).

In terms of the implementation I guess something like Dark Reader might be good, with a global toggle like what we have right now, and an additional toggle for the tab in focus? There's still some details to think about like the default state of the tab toggle (I guess always on when the global one is on?) and if some kind of "last state memory" would be good (maybe based on the url? Not sure).

And so if this gets implemented, it would probably be nice to also have this kind of global/local scope separation for settings too? Again, kind of how Dark Reader does it.

@WofWca
Copy link
Owner

WofWca commented Jul 21, 2023

Hey, thanks!

I agree, this should be an option.

There was a little chat on Discord about this. Also I think I have a TODO written somewhere in the code about this. My initial idea is to clone the settings object upon initialization and only make changes to the copy of the object, not the global object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants