Skip to content

Instantly share code, notes, and snippets.

@nikcub
Created May 4, 2016 22:06
Show Gist options
  • Save nikcub/b8cf72f564cde9000875be798e883928 to your computer and use it in GitHub Desktop.
Save nikcub/b8cf72f564cde9000875be798e883928 to your computer and use it in GitHub Desktop.
Twitter refined Greasemonkey / user script

Chrome install - drag + drop onto extensions window at chrome://extensions

// ==UserScript==
// @name twitter_refine
// @description Redirect desktop Wikipedia to mobile
// @match https://www.twitter.com/*
// @match https://twitter.com/*
// ==/UserScript==
'use strict';
var m = /twitter\.com\/(.*)/.exec(location.href)
if (m) { window.location = "https://mobile.twitter.com/" + m[1] };
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment