tumpio / requestcontrol

A Firefox extension
https://addons.mozilla.org/addon/requestcontrol
Mozilla Public License 2.0
172 stars 25 forks source link

[question] Is there a way to match a question-mark literally without using regexp? #158

Open rusty-snake opened 3 years ago

rusty-snake commented 3 years ago

Is there any way to match a question-mark literally without using regexp?

Example:

I want a exclude rule like ://example.com/foo/bar?frog_id=* where the ? is a ? and not any char. I could use /:\/\/example\.com\/foo\/bar\?frog_id=.*/, I know but come on this isn't readable. So is there a way to do something like ://example.com/foo/bar\?frog_id=* or ://example.com/foo/bar??frog_id=*?

ChiefMikeK commented 3 years ago

Maybe ¯\_(ツ)_/¯try percent encoding ie.

%3F


https://en.m.wikipedia.org/wiki/Percent-encoding

rusty-snake commented 3 years ago

Unfortunately this does not work either.