// ==UserScript==
// @include http://twitter.com/*
// @include https://twitter.com/*
// @grant none
// @version 2012.08.03.10
// ==/UserScript==
dIsAbLeDdiv=document.createElement("div");
dIsAbLeDdiv.innerHTML="
Tweet Input W
Tweets X W
Panel X Y W
Tweet color L
BG color
";
dIsAbLeDdiv.style.display="block";
dIsAbLeDdiv.id="dIsAbLeD";
dIsAbLeDdiv.style.fontWeight="bold";
dIsAbLeDdiv.style.position="fixed";
dIsAbLeDdiv.style.left=4+"px";
dIsAbLeDdiv.style.top=4+"px";
dIsAbLeDdiv.style.background="#008";
dIsAbLeDdiv.style.color="white";
dIsAbLeDdiv.style.zIndex="9999";
dIsAbLeDdiv.style.fontFamily="arial";
dIsAbLeDdiv.style.fontSize="12px";
dIsAbLeDdiv.style.border="solid blue 2px";
dIsAbLeDdiv.style.width="200px";
document.body.appendChild(dIsAbLeDdiv);
hStylE=document.createElement("style");
hStylE.type="text/css";
hStylE.id="hStylE";
document.getElementsByTagName("head")[0].appendChild(hStylE);
hStylE=document.createElement("style");
hStylE.type="text/css";
hStylE.id="hStylE2";
hStylE.innerHTML="#dIsAbLeD input{font-family:arial;font-size:12px;background-color:#fffff0;color:#009;padding:0;margin:0;border:solid blue 1px;}";
document.getElementsByTagName("head")[0].appendChild(hStylE);
(function(){
var t=document.createElement("script");
if(t) {
d=document.getElementsByTagName("head")[0];
if(d) {
d.appendChild(t);
t.innerHTML='var skip_fLg=0, dIsAbLeD=0, t_MeR=0, hPaneL=0, hTweeTs=0, t_areA_w_OrgL=[0], oRgL_vaLs=[0], sTylEnEEdUpD=1;'+
'var twEEts_wiDth=600, t_areA_w=300, pnL_x=120, pnL_y=160, pnL_w=292, Show_FulL_TimE=2;'+
'var twEEts_lefT=400, pnL_bg="F4F8FF", Tw_cLr="080", TwL_cLr="008",dTimeR_msEc=1000;'+
'function _TsT_sAvE(){ var x,o={}; o.pnL_x=pnL_x; o.pnL_y=pnL_y; o.pnL_w=pnL_w; o.twEEts_lefT=twEEts_lefT; o.twEEts_wiDth=twEEts_wiDth; o.hiDe_whoToFo=document.getElementById("wtfo").checked; o.pnL_tranS=document.getElementById("pnL_tranS").checked; o.Show_FulL_TimE=document.getElementById("Show_FulL_TimE").checked; x=document.getElementById("pnL_bg").value; if(x==" "||x=="")x="F4F8FF"; o.pnL_bg=x; x=document.getElementById("Tw_cLr").value; if(x==" "||x=="")x="080"; o.Tw_cLr=x; x=document.getElementById("TwL_cLr").value; if(x==" "||x=="")x="008"; o.TwL_cLr=x; o.t_areA_w=document.getElementById("t_areA_w").value; localStorage.setItem("TwitterTwiST:DaTa",JSON.stringify(o));}function _TsT_LoaD(){ var d,o; o=JSON.parse(localStorage.getItem("TwitterTwiST:DaTa")); if(o) { d=document.getElementById("pnL_x"); if(d&&o.pnL_x!=undefined){pnL_x=o.pnL_x;d.value=pnL_x;} d=document.getElementById("pnL_y"); if(d&&o.pnL_y!=undefined){pnL_y=o.pnL_y;d.value=pnL_y;} d=document.getElementById("pnL_w"); if(d&&o.pnL_w!=undefined){pnL_w=o.pnL_w;d.value=pnL_w;} d=document.getElementById("twEEts_lefT"); if(d&&o.twEEts_lefT!=undefined){twEEts_lefT=o.twEEts_lefT;d.value=twEEts_lefT;} d=document.getElementById("twEEts_wiDth"); if(d&&o.twEEts_wiDth!=undefined){twEEts_wiDth=o.twEEts_wiDth;d.value=twEEts_wiDth;} d=document.getElementById("wtfo"); if(d&&o.hiDe_whoToFo!=undefined)d.checked=o.hiDe_whoToFo; d=document.getElementById("pnL_tranS"); if(d&&o.pnL_tranS!=undefined)d.checked=o.pnL_tranS; d=document.getElementById("Show_FulL_TimE"); if(d&&o.Show_FulL_TimE!=undefined)d.checked=o.Show_FulL_TimE; d=document.getElementById("pnL_bg"); if(d&&o.pnL_bg!=undefined)d.value=o.pnL_bg; d=document.getElementById("Tw_cLr"); if(d&&o.Tw_cLr!=undefined)d.value=o.Tw_cLr; d=document.getElementById("TwL_cLr"); if(d&&o.TwL_cLr!=undefined)d.value=o.TwL_cLr; d=document.getElementById("t_areA_w"); if(d&&o.t_areA_w!=undefined)d.value=o.t_areA_w; }}_TsT_LoaD();'+
'function _Show_FulL_TimE(){var i,d,t,w;Show_FulL_TimE++;if(Show_FulL_TimE<3){return;}d=document.getElementById("Show_FulL_TimE");if(!d){return;}if(!d.checked){return;}if(hTweeTs) { Show_FulL_TimE=0; t=hTweeTs.getElementsByTagName("a"); if(t) { for(i=0;i> "+w; } } } } }}'+
'function _Get_Tw_wid(){var d=document.getElementById("twEEts_wiDth");var x=parseInt(d.value); if(isNaN(x)){x=600;twEEts_wiDth=x;d.value=x;sTylEnEEdUpD|=1;return x;} else if(x<240)x=240; else if(x>2000)x=2000; if(x!=twEEts_wiDth){twEEts_wiDth=x;d.value=x;sTylEnEEdUpD|=1;} return x;}function _Get_Tw_x(){var d=document.getElementById("twEEts_lefT");var x=parseInt(d.value); if(isNaN(x)){x=400;twEEts_lefT=x;d.value=x;sTylEnEEdUpD|=2;return x;} else if(x<-200)x=-200; else if(x>2000)x=2000; if(x!=twEEts_lefT){twEEts_lefT=x;d.value=x;sTylEnEEdUpD|=2;} return x;}function _Get_pL_x(){var d=document.getElementById("pnL_x");var x=parseInt(d.value); if(isNaN(x)){x=120;pnL_x=x;d.value=x;sTylEnEEdUpD|=4;return x;} else if(x<-200)x=-200; else if(x>2000)x=2000; if(x!=pnL_x){pnL_x=x;d.value=x;sTylEnEEdUpD|=4;} return x;}function _Get_pL_y(){var d=document.getElementById("pnL_y");var x=parseInt(d.value); if(isNaN(x)){x=160;pnL_y=x;d.value=x;sTylEnEEdUpD|=8;return x;} else if(x<0)x=0; else if(x>999)x=999; if(x!=pnL_y){pnL_y=x;d.value=x;sTylEnEEdUpD|=8;} return x;}function _Get_pL_w(){var d=document.getElementById("pnL_w");var x=parseInt(d.value); if(isNaN(x)){x=292;pnL_w=x;d.value=x;sTylEnEEdUpD|=16;return x;} else if(x<180)x=180; else if(x>999)x=999; if(x!=pnL_w){pnL_w=x;d.value=x;sTylEnEEdUpD|=16;} return x;}function _Get_bg_c(){var x; if(document.getElementById("pnL_tranS").checked) { x="transparent"; if(x!=pnL_bg){pnL_bg=x;sTylEnEEdUpD|=32;} return x; } else { var d=document.getElementById("pnL_bg"); x=d.value; if(x==" "||x==""){x="F4F8FF";pnL_bg=x;d.value=x;sTylEnEEdUpD|=32;return "#"+x;} if(x!=pnL_bg){pnL_bg=x;d.value=x;sTylEnEEdUpD|=32;} return "#"+x; }}function _Get_Tw_cLr(){var d=document.getElementById("Tw_cLr");var x=d.value; if(x==" "||x==""){x="080";Tw_cLr=x;d.value=x;sTylEnEEdUpD|=64;return "#"+x;} if(x!=Tw_cLr){Tw_cLr=x;d.value=x;sTylEnEEdUpD|=64;} return "#"+x;}function _Get_TwL_cLr(){var d=document.getElementById("TwL_cLr");var x=d.value; if(x==" "||x==""){x="008";TwL_cLr=x;d.value=x;sTylEnEEdUpD|=128;return "#"+x;} if(x!=TwL_cLr){TwL_cLr=x;d.value=x;sTylEnEEdUpD|=128;} return "#"+x;}'+
'function _creaTe_dRagS(){var e,t,d,s,h=0;t=document.getElementById("pnL_dRg");if(!t) {hPaneL=0;oRgL_vaLs[0]=0;t=document.getElementById("page-container");if(!t){t=document;}if(t) { d=t.getElementsByTagName("div"); if (d) { for (var i=0;i<=>";e.title="SHIFT + click + drag to change Tweets width";e.style.display="block";e.id="twT_dRg";e.style.border="solid blue 2px";e.style.position="absolute";e.style.right="0";e.style.top="2px";e.style.background="#008";e.style.color="white";e.style.zIndex="9998";e.style.fontFamily="arial";e.style.fontSize="9px";e.setAttribute("onmousedown","skip_fLg|=2;_dRg(this.parentNode,event);");hTweeTs=d;d.appendChild(e);if(hTweeTs.getAttribute("style")) {oRgL_vaLs[0]|=2;d=hTweeTs;t=parseInt(d.style.width);if(isNaN(t))t="x";oRgL_vaLs[11]=t;t=parseInt(d.style.left);if(isNaN(t))t="x";oRgL_vaLs[12]=t; } } }}'+
'function _Tw_HDe(){var t,d,s;if(!skip_fLg) {t=document.getElementById("js-empty-timeline-recommendations-module-hook");if(t && document.getElementById("wtfo").checked){t.style.display="none";}d=document.getElementsByTagName("textarea")[0];if (d) { if(d.parentNode.parentNode.parentNode.parentNode.className=="tweet-box tweet-user") { if(!t_areA_w_OrgL[0]) { t_areA_w_OrgL[0]=1; t_areA_w_OrgL[1]=d.style.position; t_areA_w_OrgL[2]=d.style.zIndex; t_areA_w_OrgL[3]=d.style.left; t_areA_w_OrgL[4]=d.style.opacity; t_areA_w_OrgL[5]=d.style.width; } d.style.position="relative"; d.style.zIndex="997"; d.style.left="-20px"; d.style.opacity=".8"; t=document.getElementById("t_areA_w"); s=parseInt(t.value); if(isNaN(s)){s=300;t_areA_w=0;} else if(s<100)s=100; else if(s>800)s=800; if(t_areA_w!=s){t_areA_w=s;t.value=s;} d.style.width=s+"px"; } }_Show_FulL_TimE();_StylE_u();_creaTe_dRagS();if (hPaneL){hPaneL.style.left=pnL_x+"px"; hPaneL.style.top=pnL_y+"px"; hPaneL.style.width=pnL_w+"px"; }if (hTweeTs){hTweeTs.style.left=twEEts_lefT+"px"; hTweeTs.style.width=twEEts_wiDth+"px"; } }d=new Date();document.getElementById("dIsAbLeD").lastChild.innerHTML=d.toLocaleTimeString();}t_MeR=setInterval(_Tw_HDe,dTimeR_msEc);_Tw_HDe();'+
'function _StylE_u(){var s=".content-main{width:"+_Get_Tw_wid()+"px;"+ "left:"+_Get_Tw_x()+"px;"+ "border:solid blue 2px;"+ "position:relative;"+ "float:none;"+ "color:"+_Get_Tw_cLr()+";"+ "}"+ "a:link,a:visited,.stats a,.content-main a:link,.simple-details-link,.expand-stream-item,.expand-action-wrapper,.twitter-atreply,.pretty-link,.collapse-stream-item,.js-hide-details{color:"+_Get_TwL_cLr()+";"+ "}"+ "div.original-tweet.opened-tweet{border:solid brown 2px;"+ "}"+ ".with-icn{border:solid #888 1px;"+ "}"+ ".dashboard{width:"+_Get_pL_w()+"px;"+ "left:"+_Get_pL_x()+"px;"+ "top:"+_Get_pL_y()+"px;"+ "border:solid blue 2px;"+ "position:fixed;"+ "}"+ ".dashboard .stats,.onebox-inner,.module .active .list-link,.tweet-box,.tweet-user,.new-tweets-bar,.content-main .in-reply-to,.route-permalink .signup-call-out,.js-stream-item,.stream-item,.js-mini-profile-stats-container,.module signup-call-out,.permalink,.permalink-inner,.components-middle,.profile-card-inner,.bio,.module,.module a,.module .list-link,.stream-end-inner,.stream-end,.content-header .header-inner,.profile-card .flex-module,.module .flex-module,.flex-module-header,.flex-module-inner,.site-footer,.profile-nav,.signup-call-out,.profile-signup-call-out,.list-link,.js-facets,.js-sidenav-link,.js-items-container,.clearfix,.profile-picture,.profile-nav,.js-actionable-user,.component,.flex-module,.content,.replies,.content-header,.content-no-header,.header-inner,.no-header-inner,.stream-item-header,.stream-item-footer,.header-inner,.tweet,.js-tweet-text{background-color:"+_Get_bg_c()+";"+ "}"+ "div.stream-items>div.open{border:solid #00f 2px;margin:8px;padding:0;"+ "}"+ ".tweet:hover,.stream-item.hovered-stream-item,.simple-tweet:hover,.recent-tweets .tweet:hover,.stream-item-activity .tweet:hover,.twttr-dialog-reply-footer:hover,.media-gallery-content .tweet:hover,.permalink-tweet:hover,.stream-item.hovered-stream-item.open,.stream-item.open .original-tweet:hover{background-color:#DEF;"+ "}"+ ".permalink{color:"+_Get_Tw_cLr()+";"+ "}"+ ".wrapper{width:95%;padding:0;padding-top:32px;"+ "}"+ ".profile-card{width:75%;margin-left:20%;"+ "}"+ ".wrapper-permalink{width:75%;"+ "}"+ ".wrapper,.wrapper-narrow,.wrapper-permalink{background:transparent;"+ "}"+ ".original-tweet div.tweet-media img,div.tweet-media img{width:auto;max-width:100%;height:auto;max-height:100%;"+ "}";if(sTylEnEEdUpD){document.getElementById("hStylE").innerHTML=s;sTylEnEEdUpD=0;}}'+
'function _dIsAbL(){var t;dIsAbLeD^=1;if (dIsAbLeD && t_MeR) { clearInterval(t_MeR); t_MeR=0; document.getElementById("hStylE").disabled="true"; t=document.getElementById("dIsAbLeD"); t.firstChild.innerHTML="TwiST OFF"; t.firstChild.title="Click to turn Twitter User JavaScript ON"; t=document.getElementById("pnL_dRg"); if(t)t.style.display="none"; t=document.getElementById("twT_dRg"); if(t)t.style.display="none"; if(t_areA_w_OrgL[0]==1) { t=document.getElementsByTagName("textarea")[0]; if (t) { if(t.parentNode.parentNode.parentNode.parentNode.className=="tweet-box tweet-user") { t.style.position=t_areA_w_OrgL[1]; t.style.zIndex=t_areA_w_OrgL[2]; t.style.left=t_areA_w_OrgL[3]; t.style.opacity=t_areA_w_OrgL[4]; t.style.width=t_areA_w_OrgL[5]; } } } if(hPaneL) { if(oRgL_vaLs[0]&1) { t=hPaneL; t.style.width=oRgL_vaLs[1]+"px"; t.style.left=oRgL_vaLs[2]+"px"; t.style.top=oRgL_vaLs[3]+"px"; } else { for (var c=0;c<10;c++)/* This is for FUCKING SHIT Google Chrome! IT CANNOT ALWAYS REMOVE ATTRIBUTE FOR THE FIRST TIME! IT HAVE SOME BUGS WITH CHANGING style VIA class OR EVEN INLINE! */ { hPaneL.removeAttribute("style"); if(hPaneL.getAttribute("style")==null)break; } } /*if(hPaneL.getAttribute("style")!=null)alert(hPaneL.getAttribute("style"));*/ } if(hTweeTs) { if(oRgL_vaLs[0]&2) { t=hTweeTs; t.style.width=oRgL_vaLs[11]+"px"; t.style.left=oRgL_vaLs[12]+"px"; } else { for (var c=0;c<10;c++) { hTweeTs.removeAttribute("style"); if(hTweeTs.getAttribute("style")==null)break; } } } }else if(!t_MeR) { document.getElementById("hStylE").removeAttribute("disabled"); t_MeR=setInterval(_Tw_HDe,dTimeR_msEc); t=document.getElementById("dIsAbLeD"); t.firstChild.innerHTML="TwiST ON "; t.firstChild.title="Click to turn Twitter User JavaScript OFF"; t=document.getElementById("pnL_dRg"); if(t)t.style.display="block"; t=document.getElementById("twT_dRg"); if(t)t.style.display="block"; skip_fLg=0; t=_Get_pL_x();/* This is also for FUCKING SHIT Google Chrome! */ document.getElementById("pnL_x").value=t+1; _Tw_HDe(); document.getElementById("pnL_x").value=t; _Tw_HDe(); }}'+
'function _dRg(k,e){var dX,dY,x,y,z,w;z=e.shiftKey;if(z) { dX=e.clientX; dY=e.clientY; w=parseInt(k.style.width); if(!w)w=292; }else { x=parseInt(k.style.left); if (!x)x=0; y=parseInt(k.style.top); if (!y)y=0; dX=e.clientX-x; dY=e.clientY-y; }if (document.addEventListener){ document.addEventListener("mousemove", m, true); document.addEventListener("mouseup", u, true); }if (e.stopPropagation)e.stopPropagation();if (e.preDefault)e.preDefault(); function m(e){ if(!z) { if(skip_fLg!=2) { var Y=e.clientY-dY; if (Y>window.innerHeight-64)Y=window.innerHeight-64; if (Y<0)Y=0; k.style.top=Y+"px"; } k.style.left=(e.clientX-dX)+"px"; } else { if(skip_fLg) { var f=w+e.clientX-dX; if(f<100)f=100; else if(f>2000)f=2000; k.style.width=f+"px"; if(skip_fLg==2) {twEEts_wiDth=f; document.getElementById("twEEts_wiDth").value=f; } else {pnL_w=f; document.getElementById("pnL_w").value=f; } } } if (e.stopPropagation)e.stopPropagation(); } function u(e){ if (document.removeEventListener){ document.removeEventListener("mousemove", m, true); document.removeEventListener("mouseup", u, true); } if (e.stopPropagation)e.stopPropagation(); switch(skip_fLg){ case 1: pnL_x=parseInt(k.style.left); document.getElementById("pnL_x").value=pnL_x; pnL_y=parseInt(k.style.top); document.getElementById("pnL_y").value=pnL_y; break; case 2: twEEts_lefT=parseInt(k.style.left); document.getElementById("twEEts_lefT").value=twEEts_lefT; } skip_fLg=0; }}';
}
}
})();