DevToys-app / DevToys

A Swiss Army knife for developers.
https://devtoys.app/
MIT License
26.94k stars 1.45k forks source link

Allow button to re-decode the url in URL decoder app #382

Open ParagRaut opened 2 years ago

ParagRaut commented 2 years ago

What's the Problem?

Sometimes you have URLs like "https://www.test.com/my/dosomething?url=https%253A%252F%252Fwww.test.com%252Fshop%252Fproduct%252Fapple-iphone-black%252F22021339%253Fch%253Des%2526cc%253Dcon%2526sc%253Dacq%2526dr%253D24%2526pr%253Dlos41%25252Clo45%25252CSK318%2526lp%253D1&et=s"

These URLs have parameters which cannot be decoded when you paste it in. I ideally use this website to decode strings like these e.g. "https://meyerweb.com/eric/tools/dencoder/" where you have button to decode/encode, and the more you press on decode it goes 1 level deeper in URL. try out yourself with the URL I've provided. I could just use that web tool but, I really like your tool and want to use it as much as I can.

Solution/Idea

Maybe provide encode and decode button instead of an toggle switch. so people can decode multiple times

E.g. image

Alternatives

https://meyerweb.com/eric/tools/dencoder/

Priorities

Capability Priority
This proposal will allow developers to accomplish W Must
This proposal will allow end users to accomplish X Should
This proposal will allow developers to accomplish Y Could
This proposal will allow end users to accomplish Z Won't

DevToys Version

Version 1.0.2.0 | X64 | RELEASE | b972462 | b972462

Comments

No response

jwfxpr commented 2 years ago

In general, encodings where intentional or accidental double-escaping is common, like URLs and HTML/XML, could benefit from fast multiple decodings like this 😊 the number of times I've seen & ... smh