/*
* @title <-> Tw mobi
* @description come and go mobile page on Twitter
* @include *://mobile.twitter.com/*
* @include *://twitter.com/*
* @license MIT http://opensource.org/licenses/MIT
* @javascript_url
*/
(function () {
if (!/twitter\.com$/.test(location.hostname)) return;
// startsWith: ES6 experimental; impl Chrome(mium) and Fx yet
// https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/String/startsWith
// http://kangax.github.io/compat-table/es6/#String.prototype_methods_String.prototype.startsWith
/*
location.hostname = location.hostname.startsWith('mobile.') ? 'twitter.com' : 'mobile.twitter.com';
/*/
location.hostname = location.hostname.split('.').shift() === 'mobile' ? 'twitter.com' : 'mobile.twitter.com';
//*/
})();