Skip to content

Feature request: Add more browser url scopes #424

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

Closed
timo95 opened this issue Nov 12, 2021 · 2 comments
Closed

Feature request: Add more browser url scopes #424

timo95 opened this issue Nov 12, 2021 · 2 comments

Comments

@timo95
Copy link

timo95 commented Nov 12, 2021

I often have to edit the query part of the url. Currently I have to do something like this to get the current query:

query = scope.get("browser.url").partition("?")[2].partition("#")[0]

query and fragment would also be useful in context matching to limit commands to specific parts of websites.

@lunixbochs
Copy link

I've been generally recommending folks don't use scope.get() besides debugging. Try this:

from urllib.parse import urlparse
urlparse(actions.browser.address())

@lunixbochs
Copy link

added query/fragment to browser scope in rust beta

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

No branches or pull requests

2 participants