AdguardTeam / Userscripts

Userscripts made by our team
GNU Lesser General Public License v3.0
53 stars 11 forks source link

Create a userscript for rewriting URLs #3

Open ameshkov opened 8 years ago

ameshkov commented 8 years ago

Source request: http://forum.adguard.com/showthread.php?8695-HowTo-rewrite-a-URL

TPS commented 4 months ago

Recently, I ran into ftp://ftp.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WindowsBestFit/readme.txt while reading about the recent PHP vuln, but it turns out the major browsers dropped FTP capability around the time they integrated HTTPS-by-default everywhere. If this userscript is ever published, the best fallback would be to convert

ameshkov commented 4 months ago

In theory the new $urltransform modifier: https://github.com/AdguardTeam/CoreLibs/issues/1364

TPS commented 4 months ago

I've read the $urltransform sections of the docs several times, but regex always confuses me. This seems simple, but I hesitate b/c of that. What would be the correct rule to attempt?