Skip to content

Create a userscript for rewriting URLs #3

Open

Description

@ameshkov

Activity

  1. TPS commented on Jun 10, 2024

    @TPS

    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

    • [s]ftp[s]:// → https://
    • ftp:// → http:// (which the browsers would then try https://, but would allow fallback to http:// with (justified) warning
  2. ameshkov commented on Jun 10, 2024

    @ameshkov
    MemberAuthor

    In theory the new $urltransform modifier: AdguardTeam/CoreLibs#1364

  3. TPS commented on Jun 12, 2024

    @TPS

    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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions