Submitted by sudo in Privacy (edited )

If you're one of the people who block all JavaScript in your browser, you've probably found it a bit frustrating to browse reddit, because so much of it is broken without JavaScript. Because of this, I made a few URL redirects in Redirector to make reddit (and its associated websites) more accessible to people who disable JavaScript.

To use them, first get the Redirector addon from here. Then, save the following in a text file on your computer:


{
    "createdBy": "Redirector v3.2.1",
    "createdAt": "2018-09-18T23:11:59.700Z",
    "redirects": [
        {
            "description": "New Reddit to Old Reddit",
            "exampleUrl": "https://www.reddit.com/r/AnimalsBeingJerks/comments/9gtzd9/dog_chews_the_fender_of_a_porsche_911_turbo/",
            "exampleResult": "https://old.reddit.com/r/AnimalsBeingJerks/comments/9gtzd9/dog_chews_the_fender_of_a_porsche_911_turbo/",
            "error": null,
            "includePattern": "reddit.com/(.*)",
            "excludePattern": "",
            "patternDesc": "",
            "redirectUrl": "https://old.reddit.com/$1",
            "patternType": "R",
            "processMatches": "noProcessing",
            "disabled": false,
            "appliesTo": [
                "main_frame"
            ]
        },
        {
            "description": "Gifv to Gif",
            "exampleUrl": "https://i.imgur.com/TY94gEY.gifv",
            "exampleResult": "https://i.imgur.com/TY94gEY.gif",
            "error": null,
            "includePattern": "imgur.com/([a-zA-Z0-9]+)\\.gifv$",
            "excludePattern": "",
            "patternDesc": "",
            "redirectUrl": "https://i.imgur.com/$1.gif",
            "patternType": "R",
            "processMatches": "noProcessing",
            "disabled": false,
            "appliesTo": [
                "main_frame"
            ]
        },
        {
            "description": "Imgur to i.imgur",
            "exampleUrl": "https://imgur.com/NV8ENXJ",
            "exampleResult": "https://i.imgur.com/NV8ENXJ.jpg",
            "error": null,
            "includePattern": "imgur.com/([a-zA-Z0-9]+)$",
            "excludePattern": "",
            "patternDesc": "",
            "redirectUrl": "https://i.imgur.com/$1.jpg",
            "patternType": "R",
            "processMatches": "noProcessing",
            "disabled": false,
            "appliesTo": [
                "main_frame"
            ]
        },
        {
            "description": "Gfycat redirect to video",
            "exampleUrl": "https://gfycat.com/SprySoftEider",
            "exampleResult": "https://giant.gfycat.com/SprySoftEider.mp4",
            "error": null,
            "includePattern": "gfycat.com/(\\w+)$",
            "excludePattern": "",
            "patternDesc": "",
            "redirectUrl": "https://giant.gfycat.com/$1.mp4",
            "patternType": "R",
            "processMatches": "noProcessing",
            "disabled": false,
            "appliesTo": [
                "main_frame"
            ]
        },
        {
            "description": "Twitter to Legacy Twitter",
            "exampleUrl": "https://twitter.com/mgba_emu",
            "exampleResult": "https://mobile.twitter.com/mgba_emu",
            "error": null,
            "includePattern": "twitter.com/(\\w+)",
            "excludePattern": "",
            "patternDesc": "",
            "redirectUrl": "https://mobile.twitter.com/$1",
            "patternType": "R",
            "processMatches": "noProcessing",
            "disabled": false,
            "appliesTo": [
                "main_frame"
            ]
        }
    ]
}

Then open up the Redirector settings, and import that text file you just saved.

Here's what each one of these does:

The first one changes all reddit.com links to old.reddit.com links. The redesigned reddit is nigh unusable without JavaScript (not to mention that it looks like crap), but the old design works fine, at least for lurking. This also eliminates the annoying problem of browsing the old design, but clicking on a link that doesn't have the "old" prefix in the url, thus taking you to the new design.

The second one applies to imgur. It redirects all .gifv links to their equivalent .gif links. Gifv is a video format that imgur uses that is much smaller in filesize than an animated gif, thus making it load much quicker in the browser. Unfortunately, it also requires JavaScript to run. Normal gifs work just fine, however. This redirect saves you the trouble of having to delete the "v" in the URL every time you want to see an animated gif.

The third one also applies to imgur. Some people upload an image to imgur, but don't post a direct link to the image in their corresponding reddit post. Instead, they will post a link to the "wrapper" page for the image (like this). Unfortunately, if you block JavaScript, this wrapper page will not actually load the image in question. So, this redirect changes the wrapper link to the direct link to the image (like this).

The next one applies to gfycat. Normal gfycat links lead you to "wrapper" pages, just like with imgur. This redirect simply takes you directly to the video.

The last one applies to twitter. If you try to visit any twitter URL with JavaScript disabled, it won't show the content, but will instead show you a message asking if you want to proceed to legacy (mobile) twitter. This redirect simply makes all twitter links become mobile twitter links.


Hopefully someone will find this useful.

12

Comments

You must log in or register to comment.

leftous wrote

You may want to add an exclude pattern for the reddit links e.g.

reddit.com/(.*)url= 

I noticed when clicking external links, changing to out.reddit will 404. So it needs to exclude reddit external link patterns.

3

sudo OP wrote

I've never encountered an external reddit link before. Can you give me an example of one, so I can test it? I'll update the main post if I can make it work.

3

leftous wrote

Sorry, I was mistaken. I thought I had all scripts from reddit blocked (using noscript), but some click event must still be executing. If I completely disable javascript on reddit using ublock, I don't get redirected to out.reddit.com which is where I was getting 404'd.

2

leftous wrote

Thanks, been thinking to do something like this. Much appreciated.

2