/*
* @title 近辺のツイート表示
* @description Twitterの個別ツイート(https://twitter.com/<name>/status/<id>)前後のタイムラインを表示
* @include https://twitter.com/\w+/status/\d+
* @license MIT License
* @javascript_url
* @private
*/
(function(i,u,s,c,q,w){w=window.open('https://twitter.com/search?q='+encodeURIComponent('from:'+u+' since:'+c(s-3600*24)+' until:'+c(s+3600*48))+'&f=realtime');c=function($){$=(function(){try{return w.$}catch(e){return 0}})();if(!$||!(q=$("li[data-item-id='"+i+"']"))[0]){if($)$('body,html').animate({scrollTop:$('li[data-item-id]:last').offset().top},'0');setTimeout(c,300)}else{q.css('background','gold');$('body,html').animate({scrollTop:q.offset().top-$(w).height()/2},'0')}};c()})($('div.opened-tweet').attr('data-item-id'),$('div.opened-tweet').attr('data-screen-name'),parseInt($('div.opened-tweet span[data-time]').attr('data-time')),function(s,d){d=new Date(1000*s);return d.getUTCFullYear()+'-'+(1+d.getUTCMonth())+'-'+d.getUTCDate()});