Hey everyone. If you want to post links or discuss the Reddit blackout, please localize it to this thread in order to keep things tidy!

  • PenguinCoder@beehaw.org
    link
    fedilink
    English
    arrow-up
    9
    ·
    edit-2
    2 years ago

    There’s an app for that

    Save and import:

    {
        "createdBy": "Redirector v3.5.3",
        "createdAt": "2023-06-01T00:00:00.011Z",
        "redirects": [
            {
                "description": "Reddit to Beehaw",
                "exampleUrl": "https://reddit.com",
                "exampleResult": "https://beehaw.org",
                "error": null,
                "includePattern": "^(https?://)([a-z0-9-]*\\.)?reddit.com(.*)",
                "excludePattern": "",
                "patternDesc": "Reddit to Beehaw",
                "redirectUrl": "https://beehaw.org",
                "patternType": "R",
                "processMatches": "noProcessing",
                "disabled": false,
                "grouped": false,
                "appliesTo": [
                    "main_frame"
                ]
            }
        ]
    }
    
      • PenguinCoder@beehaw.org
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 years ago

        Yes, that can be done like so:

        {
            "createdBy": "Redirector v3.5.3",
            "createdAt": "2023-06-01T00:00:00.011Z",
            "redirects": [
                {
                    "description": "LemmyML to Sopuli",
                    "exampleUrl": "https://lemmy.ml/c/memes ",
                    "exampleResult": "https://sopuli.xyz/c/memes ",
                    "error": null,
                    "includePattern": "^(https?://)([a-z0-9-]*\\.)?lemmy.ml/(.*)",
                    "excludePattern": "",
                    "patternDesc": "",
                    "redirectUrl": "https://sopuli.xyz/$3",
                    "patternType": "R",
                    "processMatches": "noProcessing",
                    "disabled": false,
                    "grouped": false,
                    "appliesTo": [
                        "main_frame"
                    ]
                }
            ]
        }
        

        Copy that to a file, save it and then import into Redirector.