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

Add ability to extract a specific argument from the URL #14

Open
RobertKlohr opened this issue Feb 3, 2023 · 1 comment
Open

Add ability to extract a specific argument from the URL #14

RobertKlohr opened this issue Feb 3, 2023 · 1 comment
Labels
enhancement New feature or request urlintitle

Comments

@RobertKlohr
Copy link

Add the ability to extract a specific argument from the URL into the title.

Example URL: https://example.com/?login=saml&email=test%40example.com with the title “Sign-In”

Example:

The tag could be {argvalue=”key”} with “key” being the argument key to search for to return the value. Need to consider arguements prefaced by both “?” and “&”.

Tab title format: {title} - {protocol}://{hostnameascii} - {argvalue=email}

Result: Sign In - https://example.com/ - test%40example.com

@guilryder guilryder added duplicate This issue or pull request already exists urlintitle enhancement New feature or request and removed duplicate This issue or pull request already exists labels Feb 5, 2023
@guilryder
Copy link
Owner

guilryder commented Feb 6, 2023

The extension is designed to be used against multiple websites with straightforward title formats. It does not offer per-website customization apart from the simple allow/blocklist mechanism.

For now I don't intend to increase the extension complexity to offer website-specific formatting or functions similar to what https://wiki.hydrogenaud.io/index.php?title=Foobar2000:Title_Formatting_Reference offers for music tracks title formatting.

Extracting a specific parameter from the sign-in URL of a specific website is inching towards that. I will consider adding the feature if there's a use case strong enough to justify the complexity.

We would also have to consider the edge case of parameters set multiple times (allowed by the standard).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request urlintitle
Projects
None yet
Development

No branches or pull requests

2 participants