~edwardloveall/Scribe#22: 
Allow automatically importing Redirector configuration from JSON file

The manual tutorial provided in the FAQ can be replaced/complemented with the following file to be imported in Redirector :

{
    "createdBy": "Redirector v3.5.3",
    "createdAt": "1970-01-01T00:00:00.000Z",
    "redirects": [
        {
            "description": "Medium to Scribe",
            "exampleUrl": "https://medium.com/@user/post-123456abcdef",
            "exampleResult": "https://scribe.rip/@user/post-123456abcdef",
            "error": null,
            "includePattern": "^https?://(?:.*\\.)*(?<!(link\\.|cdn\\-images\\-\\d+\\.))medium\\.com(/.*)?$",
            "excludePattern": "",
            "patternDesc": "",
            "redirectUrl": "https://scribe.rip$2",
            "patternType": "R",
            "processMatches": "noProcessing",
            "disabled": false,
            "grouped": false,
            "appliesTo": [
                "main_frame"
            ]
        }
    ]
}
Status
RESOLVED FIXED
Submitter
~kaki87
Assigned to
No-one
Submitted
1 year, 8 months ago
Updated
1 year, 7 months ago
Labels
No labels applied.

~edwardloveall REPORTED FIXED 1 year, 8 months ago

Great idea. Much simpler than the lines of manual instructions. I added it in 449ece843a1e92246a25d060a29f128c4b8ddb60

~kaki87 1 year, 8 months ago

Oh, I didn't notice I missed those checkboxes. 😅

Thanks 👍

~kaki87 1 year, 7 months ago

I think you need to double up the escapes in redirects[0].includePattern, because the escapes that your back-end code contains are missing on the front-end. Thanks

~edwardloveall 1 year, 7 months ago

Ah shoot. I've had this happen before and missed it. Thanks for the heads up.

~edwardloveall FIXED REPORTED 1 year, 7 months ago

~edwardloveall REPORTED FIXED 1 year, 7 months ago

This is now fixed!

Register here or Log in to comment, or comment via email.