I agree here, and I would add that if the use case here is to redirect
specifically from reddit's mobile site:

1) .reddit.com should be included in the check, in case RES ever runs
(non-reddit-dom stuff) off of reddit.com

2) consider including i.reddit.com because that's also a mobile URL for
reddit...

agree, this needs to be toggleable / optional (what module fits best, I'm
not sure!)


On Thu, Dec 19, 2013 at 12:55 PM, Kevin Ji <notifications@github.com> wrote:

> In lib/reddit_enhancement_suite.user.js:
>
> > @@ -157,6 +157,14 @@ if (typeof Function.prototype.bind === 'undefined') {
> >  	};
> >  }
> >
> > +//if mobile version of page, redirect to desktop version
> > +if(window.location.host.match(/^m\./)){
> > +    var a = document.createElement("a");
> > +    a.href = window.location;
> > +    a.host = a.host.replace(/^m\./, '');
> > +    window.location = a.href;
> > +}
> > +
>
> Personally I don't believe it is the responsibility of RES to redirect the
> user to the desktop site. There are two possible scenarios:
>
>    1. The user *wants* the mobile site. This change would prevent them
>    from using it.
>    2. The user *does not* want the mobile site. It is easy enough just to
>    remove the m from the URL.
>
> I personally think that if this is a feature, it should be toggleable,
> defaulting to off.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/honestbleeps/Reddit-Enhancement-Suite/pull/682/files#r8479393>
> .
>