Created
September 29, 2010 16:04
-
-
Save dmolsen/603018 to your computer and use it in GitHub Desktop.
Designed to modify the look of #newtwitter so I can read tweets more easily. To use: open twitter.com, copy & paste the code below into your address bar and hit go. Bookmark to use in future.
This file contains 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
javascript:var%20els=document.getElementsByClassName('main-content');els[0].style.width='660px';var%20els=document.getElementsByClassName('dashboard');els[0].style.maxWidth='360px';els[0].style.minWidth='300px';var%20els=document.getElementsByClassName('twitter-anywhere-tweet-box-editor');els[0].style.maxWidth='600px';els[0].style.width='600px';function%20moveTweetName(){var%20els=document.getElementsByClassName('tweet-content');var%20k=0;var%20movedClass = new RegExp('moved\-tweet\-name');while(k<els.length){var%20classes=els[k].className;if(!movedClass.test(classes)){moving=els[k].childNodes[1].cloneNode(true);moving.style.float='left';els[k].insertBefore(moving,els[k].childNodes[4]);els[k].removeChild(els[k].childNodes[1]);els[k].className%20+=%20'%20moved-tweet-name';}k++;}}function%20resizeTweetName(){var%20els=document.getElementsByClassName('tweet-user-name');var%20i=0;while(i<els.length){els[i].style.fontSize='11px';i++;}var%20els=document.getElementsByClassName('tweet-screen-name');var%20i=0;while(i<els.length){els[i].style.fontWeight='normal';els[i].style.color='grey%20!important';i++;}var%20els=document.getElementsByClassName('tweet-full-name');var%20i=0;while(i<els.length){els[i].style.display='none';i++;}}function%20streamCheck(){resizeTweetName();moveTweetName();}function%20startStreamCheck(){streamCheckInterval=setInterval(streamCheck,100);}resizeTweetName();moveTweetName();startStreamCheck(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment