Last active
January 12, 2019 18:47
-
-
Save foriequal0/beeb0992f9984acba5c8c3ed5be8c5ac to your computer and use it in GitHub Desktop.
Redirect Twitter mobile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
트위터 새 UI가 이제 모바일페이지랑 똑같아져서 의미가 없는 플러그인