Change references of m.reddit.com to .mobile
This commit is contained in:
parent
f565688bcd
commit
4133e61043
@ -17,17 +17,17 @@ reddit.
|
||||
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
|
||||
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
|
||||
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>
|
||||
|
||||
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
|
||||
`"http://www.reddit.com"` with `"http://m.reddit.com"` before passing them to
|
||||
w3m (as well as fixing a double forward slash error in the comment uri cortex
|
||||
outputs that desktop reddit accepts but mobile reddit 404s on). The script:
|
||||
script wrapper around w3m that takes urls and appends `".mobile"` to the end of
|
||||
reddit urls before passing them to w3m (as well as fixing a double forward slash
|
||||
error in the comment uri cortex outputs that desktop reddit accepts but mobile
|
||||
reddit 404s on). The script:
|
||||
|
||||
```bash
|
||||
#!/bin/bash
|
||||
|
Loading…
Reference in New Issue
Block a user