Issue
I want to make a uBlock Origin filter that adds the parameter &udm=14 to the URL of Google searches. For example, redirecting www.google.com/search?q=test to www.google.com/search?q=test&udm=14.
What I’ve tried
I know that I can remove parameters with $removeparam:
||www.google.com/search^$removeparam=udm
! Before: www.google.com/search?q=test&udm=2
! After: www.google.com/search?q=test
If trusted filters are enabled, I can replace a URL parameter with $uritransform. (Albeit using a somewhat hacky solution)
||www.google.com/search^$uritransform=/&udm=2/&udm=14/
! Before: www.google.com/search?q=test&udm=2
! After: www.google.com/search?q=test&udm=14
I attempted to use $uritransform in a hacky way to add udm=14 to the start of the url parameters, (indicated by ?), but this resulted in searches where UDM could be duplicated multiple times.
||www.google.com/search^$uritransform=/?/?udm=14&/
! Before: www.google.com/search?q=test
! After: www.google.com/search?udm=14&udm=14&q=test
Question
How do I set a URL parameter value with a uBlock Origin filter?