twitter.user.js - dotfiles - leot's dotfiles
(HTM) hg clone https://bitbucket.org/iamleot/dotfiles
(DIR) Log
(DIR) Files
(DIR) Refs
---
witter.user.js
---
1 // ==UserScript==
2 // @name twitter
3 // @description Adjust and clean up timeline of Mobile Twitter
4 // @include http*://twitter.com/*
5 // @include http*://mobile.twitter.com/*
6 // ==/UserScript==
7
8 if (window.location.href.search('://twitter.com/') != -1) {
9 window.location.href = window.location.href.replace('://twitter.com/', '://mobile.twitter.com/');
10 }
11
12 ["#brand_bar", ".toast", "#footer"].forEach(function(c) {
13 document.querySelectorAll(c).forEach(function(e) {
14 e.remove();
15 });
16 });
17
18 a = document.querySelector("#container");
19 if (a) {
20 a.style.width = "640px";
21 a.style.marginTop = "20px";
22 a.style.borderWidth = "1px";
23 }