Change references of m.reddit.com to .mobile

This commit is contained in:
Tyler Hallada 2015-04-24 16:24:54 -04:00
parent fd63ee7c69
commit 495db4a81c

View File

@ -17,17 +17,17 @@ reddit.
However, I kind of got tired of viewing reddit through w3m, the header alone is However, I kind of got tired of viewing reddit through w3m, the header alone is
a few pages long to scroll through, and the CSS for the comments doesn't load so a few pages long to scroll through, and the CSS for the comments doesn't load so
there isn't any sense of threading. But, then I discovered reddit's mobile there isn't any sense of threading. But, then I discovered reddit's mobile
website: [http://m.reddit.com](http://m.reddit.com), and it looks absolutely website: [http://reddit.com/.mobile](http://reddit.com/.mobile), and it looks absolutely
beautiful in w3m. In fact, I think I prefer it to the normal website in any beautiful in w3m. In fact, I think I prefer it to the normal website in any
modern browser; there are no distractions, just pure content. modern browser; there are no distractions, just pure content.
<a href="/img/blog/w3m_mobile_reddit.png"><img src="/img/blog/w3m_mobile_reddit.png" alt="m.reddit.com rendered in w3m"></a> <a href="/img/blog/w3m_mobile_reddit.png"><img src="/img/blog/w3m_mobile_reddit.png" alt="m.reddit.com rendered in w3m"></a>
In order to get cortex to open the mobile version of reddit, I made a bash In order to get cortex to open the mobile version of reddit, I made a bash
script wrapper around w3m that takes urls and replaces `"http://reddit.com"` and script wrapper around w3m that takes urls and appends `".mobile"` to the end of
`"http://www.reddit.com"` with `"http://m.reddit.com"` before passing them to reddit urls before passing them to w3m (as well as fixing a double forward slash
w3m (as well as fixing a double forward slash error in the comment uri cortex error in the comment uri cortex outputs that desktop reddit accepts but mobile
outputs that desktop reddit accepts but mobile reddit 404s on). The script: reddit 404s on). The script:
```bash ```bash
#!/bin/bash #!/bin/bash