Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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