TrianguloY / UrlChecker

Android app by TrianguloY: URLCheck
Other
801 stars 48 forks source link

Replace url support for url cleaner module #355

Open AdityaMH opened 2 months ago

AdityaMH commented 2 months ago

Describe a related problem (optional)

if someone want to change url from en.google.com to www.google.com, or media.discordapp.net to cdn.discordapp.com you can't do that because clearurl didn't support it.

Describe your suggested feature

Using alternative to clear or replace url or make it support js like this: https://github.com/AdityaMH/Untracker/blob/fix-yt-music/app/src/main/java/me/zhanghai/android/untracker/BuiltinRuleList.kt

Describe alternatives you've considered for your suggested feature

No response

Other details

No response

Acknowledgements

TrianguloY commented 1 month ago

The pattern checker module should allow what you want.

It may be more complex to setup than adding code, I agree, but it should be similar regarding what you can do.

Is there something that code allows and the patterns doesn't? I won't mind adding a more general "Coding module", but I need to check if there is an easy way to add a language parser that doesn't add a big overhead (maybe lisp? Probably better JavaScript...I see you are using quick-js...I wonder how much overhead it adds...)