Greasy Fork is available in English.

Discussioni » Sviluppo

Algorithm help with CleanURLs

§
Pubblicato: 26/06/2023

Hello,

I've recently found a case with Clean URL Improved in which a CMS uses parameter sid for posts.

Parameter sid is listed in the blacklist and therefore the program interrupts expected experience.

In this case, I need to add settings to the program and let people to decide what is to be whitelisted and blacklisted in accord to their personal conviction.

I need help in:

  • Look at the code and tell what is wrong and what can be improved.

  • What would be a better fashion to apply custom whitelist/blacklist.

I was thinking of this:

URL Parameters Whitelist Parameters Blacklist
greasyfork.org ['sid', 'id'] ['ref']

Please help.

Thank you

§
Pubblicato: 30/06/2023
Modificato: 30/06/2023

The more important matter is:

What would be a better fashion to apply custom whitelist/blacklist?

§
Pubblicato: 30/06/2023
Modificato: 30/06/2023

Google a pictures of these libraries results for better understanding of what are they doing

Pubblica risposta

Accedi per pubblicare una risposta.