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

Possibility for external programs to lockdown (API?) #246

Open
dylanmorroll opened this issue May 9, 2022 · 1 comment
Open

Possibility for external programs to lockdown (API?) #246

dylanmorroll opened this issue May 9, 2022 · 1 comment

Comments

@dylanmorroll
Copy link

I'm not sure on the ins and outs of web development and what Firefox supports, so I'm unsure if this is possible, but it would be nice if external programs could trigger LeechBlock to enter/exit lockdown mode.

For example, I use a simple timer for GNOME that switches between a work mode and a break mode. It would be cool if I could wire it up, so when in work mode it would activate a lockdown, and when it break mode it would deactivate it.

I'm not sure how this would work. Perhaps it could expose an API which could be called from programs outside Firefox? But I'm not sure if Firefox allows this.

I'm interested to hear your thought and insights.

@Mirr0red
Copy link

A quick search led me to this page: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Native_messaging, which is probably what you are looking for, but it would require an app running in the background.
I'm not experienced with WebExtensions or anything like that, but I can't seem to think of any other way this could be done.

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