-
Notifications
You must be signed in to change notification settings - Fork 2
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
Feature request: "navigate" as a context #2
Comments
That is not a listed context for the context menus (see https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/menus/ContextType), so it'll probably need change at some other level. I will have to investigate. |
Yeah, it's not really the same kind of thing. I just want to be able to run an external script each time I visit a page on a certain domain. Right now, the closest I've been able to get to is your Firefox extension, and manually running it from the "tab" context menu. Perhaps there's a different extension that would serve my needs better, but yours seems pretty close. |
It looks like the navigation flow is quite elaborate, do you have any preference regarding where you'd like to hook into? https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/webNavigation |
My preference would be for webNavigation.onCreatedNavigationTarget or webNavigation.onBeforeNavigate |
Yet another option would be to use the |
I don't have much of a preference at what stage it runs. I'm just looking for once per page load. |
Actually, |
I'm doing some tests with both the webNavigation and webRequest APIs and I'm getting quite confused by the inconsistency of the results. Will keep experimenting. |
So using any of the |
Yeah true. I can't imagine many people would want dozens of external programs running for each navigation event. |
Can you try loading the uncompressed extension in debug mode from this branch: https://github.com/waldner/Firefox-RunWith/tree/feature/navigation ? (export your current config before doing that, if you want to preserve it for later import)
Let me know what you think. |
This would run the external command every time I navigate to a new page, not just when the command is selected from a menu.
The text was updated successfully, but these errors were encountered: