-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
Blocking home page only #52
Comments
So, it's a little more complex and the reason has nothing to do with my edit above:
Perhaps in case 1) the History API is used instead of a full page reload and that is not intercepted? |
Hi @bard!
Just for clarification, textarea is saved on every edit and as you type.
It is exactly as you say. History API / navigation isn't blocked at the moment. I took my time to solve this right away / thus later reply. At first I thought I'd just use "history" API to solve this, but as it's global, and doesn't have knowledge on which tab this navigation is happening, btw more about it at: Please, see the merge request (#53) to try this out. I have followed youtube example you provided to test it out, and it works as expected now. |
Brilliant, thank you! I installed the (Side note: I had to add |
Glad to hear! Regarding that build, have you used:
as at https://github.com/penge/block-site/actions/runs/5310575537/jobs/9612728265?pr=53 ? |
No, I used |
Thanks for this extension!
This may be a feature request or a just a question, not sure.
I'd like to block a home page but allow everything else or, at least, specific paths. I tried the following but it didn't work:
Is that currently possible?
EDIT: I was mistaken, it appears to work just fine. I think I assumed that rules are saved on textarea blur but they seem to be saved on window close. Either way, apologies for the noise and thanks again for sharing your work!
The text was updated successfully, but these errors were encountered: