Skip to content

Instantly share code, notes, and snippets.

@foriequal0
Last active January 12, 2019 18:47
Show Gist options
  • Save foriequal0/beeb0992f9984acba5c8c3ed5be8c5ac to your computer and use it in GitHub Desktop.
Save foriequal0/beeb0992f9984acba5c8c3ed5be8c5ac to your computer and use it in GitHub Desktop.
Redirect Twitter mobile
// ==UserScript==
// @name Redirect Twitter mobile
// @version 1
// @grant none
// @match *://twitter.com/*
// @run-at document-start
// ==/UserScript==
let match = /^(\w+):\/\/twitter.com\/(.*)$/.exec(window.location.href);
if (match) {
window.location.replace(match[1] + "://mobile.twitter.com/" + match[2]);
}
@foriequal0
Copy link
Author

트위터 새 UI가 이제 모바일페이지랑 똑같아져서 의미가 없는 플러그인

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment