Thursday, September 22, 2011

FaceTwitterX


// ==UserScript==
// @name   FaceTwitterX
// @version 00.07.0034
// @description Version 00.07.0034
// @author  .paradise
// @include http://twitter.com/*
// @include https://twitter.com/*
// @include http://www.facebook.com/*
// @include https://www.facebook.com/*
// @include http://www.mbok.jp/*
// @include http://www.google.co.jp/*
// @include http://www.bidders.co.jp/*
// @include http://www.moshimo.com/*
// @include https://www.moshimo.com/*
// @include http://mp.moshimo.com/*
// @include https://mp.moshimo.com/*
// @exclude http://acid3.acidtests.org/*
// ==/UserScript==
AUTO=-1;OFF=0;ON=1;

(function(){if(navigator.userAgent.match(/(MSIE|Opera|Safari|Chrome|Firefox)/)){window.scroll(0,0);setTimeout("window.scroll(0,1);",0);if(s='shopid'){
 }z=777;if(location.href.match(/:\/\/www\.google\.co\.jp\/products\?/)){doc='<style>div#ads-top,div#ads-bot{display:none;}form > input.price-range-input{margin-right:2px;width:60px !important;}</style>';function addElementBody(doc){if(ele=document.createElement('div')){with(ele){id='BodyChild';innerHTML=doc;}
    if(location.href.match(/(\/|=)/)){document.body.appendChild(ele);return(1);}}return(0);}function ifAddStr(ifSw,ifStr){if(!ifSw){ifStr=''}return(ifStr)}doc='<style>'+doc.replace(/(<\/?style>)/,'')+'</style>';if(location.href.match(/(&|\/)/)){for(i=0;10>i;i++){if(addElementBody(doc)){break;}}}
 }z=10*z+3;if(location.href.match(/:\/\/www\.bidders\.co\.jp\/dap\/sv\/list2\?/)){doc='<style>div#ads-top,div#ads-bot,table#head-tubAd > tbody > tr > td> div > a > img{display:none;}</style>';function addElementBody(doc){if(ele=document.createElement('div')){with(ele){id='BodyChild';innerHTML=doc;}
    if(location.href.match(/(\/|=)/)){document.body.appendChild(ele);return(1);}}return(0);}function ifAddStr(ifSw,ifStr){if(!ifSw){ifStr=''}return(ifStr)}doc='<style>'+doc.replace(/(<\/?style>)/,'')+'</style>';if(location.href.match(/(&|\/)/)){for(i=0;10>i;i++){if(addElementBody(doc)){break;}}}
 }z*=64;if(location.href.match(/:\/\/www\.mbok\.jp\/_l\?/)){doc='<style>div#ads-top,div#ads-bot,div#container_new09 > div > a > img{display:none;}</style>';function addElementBody(doc){if(ele=document.createElement('div')){with(ele){id='BodyChild';innerHTML=doc;}
    if(location.href.match(/(\/|=)/)){document.body.appendChild(ele);return(1);}}return(0);}function ifAddStr(ifSw,ifStr){if(!ifSw){ifStr=''}return(ifStr)}doc='<style>'+doc.replace(/(<\/?style>)/,'')+'</style>';if(location.href.match(/(&|\/)/)){for(i=0;10>i;i++){if(addElementBody(doc)){break;}}}
 }if((location.href.match(/:\/\/mp\.moshimo\.com(\/article\/search\/?)/))&&(0>location.href.indexOf('&display_mode=2'))){location.replace(location.href+'&display_mode=2')}if((location.href.match(/:\/\/(www|mp)\.moshimo\.com(\/article\/search\/?|\/?\?|\/?$)/))&&(0>location.href.indexOf('d='+z))){location.replace(location.href.substr(0,(location.href+'?').indexOf('?'))+'?'+s.substr(0,4)+'_'+s.substr(4)+'='+z)}else if((location.href.match(/:\/\/(www|mp)\.moshimo\.com\/article\/search\?/))&&(!location.href.match(/(&words=&)/))){if(0>location.href.indexOf('&order=price_d')){location.replace(location.href+'&order=price_d')}doc='';function addElementBody(doc){if(ele=document.createElement('div')){with(ele){id='BodyChild';innerHTML=doc;}if(location.href.match(/(\/|=)/)){document.body.appendChild(ele);return(1);}}return(0);}function ifAddStr(ifSw,ifStr){if(!ifSw){ifStr=''}return(ifStr)}
    function cSet(dt){if(navigator.userAgent.match(/(Opera|Safari|Chrome)/)){if(typeof localStorage!='object'){if(typeof globalStorage=='object'){localStorage=globalStorage[location.hostname]}else{;}}if(localStorage){localStorage.__=dt}}else{document.cookie='__utmx='+escape(dt)+';domain=.moshimo.com;path=/;expires= , 1-Jan-2100 00:00:00 GMT;'}}
    function cGet(){if(navigator.userAgent.match(/(Opera|Safari|Chrome)/)){if(typeof localStorage!='object'){if(typeof globalStorage=='object'){localStorage=globalStorage[location.hostname]}else{;}}if(localStorage){dt=localStorage.__}}else{dn='__utmx=';dt=document.cookie+';';if(0>(of=dt.indexOf(dn))){dt=''}else{dt=unescape(dt.substring(of+dn.length,dt.indexOf(';',of+dn.length)))}}return(dt)}
    doc+='<style>html,body{background:#ffffff top center repeat fixed !important;}p.float-left > a:hover > img{position:relative;top:2px;left:2px;}*{font-family:\'Meiryo UI\',\'Meiryo\' !important;}span.text-color-dark{font-weight:600 !important;}</style>';at=document.getElementsByTagName('a');for(i=0;at.length>i;i++){a=at[i];if(0){a.target='_blank';}a=at[i];if(a.innerHTML.match(/トップ/)){a.target='_top';}a=at[i];if(a.innerHTML.match(/(^\d+$|^&lt;|&gt;$)/)){a.target='';}}at=document.getElementsByTagName('span');for(i=0;at.length>i;i++){a=at[i];if(a.innerHTML.match(/(在庫なし|入荷待ち)/)){a.innerHTML='<font color=red>入荷待ち</font> ';}}at=document.getElementsByTagName('div');for(i=0;at.length>i;i++){a=at[i];if(a.innerHTML.match(/(stockout)/)){a.innerHTML=a.innerHTML.replace(/(stockout)/img,'');}
    }at=document.getElementsByTagName('input');for(i=0;at.length>i;i++){a=at[i];if(a.name.match(/max/)){if(''!=a.value){max=a.value;}}a=at[i];if(a.name.match(/words/)){if((''!=a.value)&&('商品の検索'!=a.value)){words=a.value.replace(/([A-Za-z0-9_])/g,function($0){return(String.fromCharCode($0.charCodeAt(0)-65248))}).replace(/([  ]+)/ig,' ').replace(/(^[ ]+|[ ]+$)/ig,'').replace(/([ ]+)/ig,'*');l=location.href;if(l.match(/page=\d+/)){p=parseInt(l.substr(l.lastIndexOf('page=')+5).replace(/([  ]+)/ig,' ').replace(/(^[ ]+|[ ]+$)/ig,''))}else{p=0}page=p+1;}}
    }at=document.getElementsByTagName('a');w=encodeURIComponent(words+'.'+page);for(i=0;at.length>i;i++){a=at[i];if(a.href.match(/\/article\/\d+\?/)){a.href='//channelplaza.web.fc2.com/?'+w+'+'+a.href.substr(0,a.href.indexOf('?')).substr(a.href.lastIndexOf('/')+1);a.target='_top';};;}at=document.getElementsByTagName('img');for(i=0;at.length>i;i++){a=at[i];if(a.src.match(/\/item_image\/\d+\/\d+\/m\.jpg/)){a.src=a.src.replace('/m.jpg','/r.jpg');}
    }at=document.getElementsByTagName('div');for(i=0;at.length>i;i++){a=at[i];if(a.innerHTML.match(/(<div><p[^<]+<\/p[^<]+<p[^<]+<\/p[^<]+<\/div>)/)){a.innerHTML=a.innerHTML.replace(/(<div><p[^<]+<\/p[^<]+<p[^<]+<\/p[^<]+<\/div>)/,'');}}at=document.getElementsByTagName('p');for(i=0;at.length>i;i++){a=at[i];if((!a.innerHTML.match(/<img /))&&(!a.innerHTML.match(/text-color-dark/))){a.innerHTML=a.innerHTML.replace(/(^|<\/span>)(<a [^>]*>|<\/a>$)/ig,'$1');}
    }doc+='<style>form#header-search-form{display:none !important;}li.line-0,li.line-1,li.line-2,li.line-3{height:200px !important;line-height:70% !important;}p.price{line-height:100% !important;}div.pager{white-space:nowrap !important;}div#search-list{width:800px !important;margin-top:0px !important;}p.image > a > img{width:120px !important;height:120px !important;}</style>';
    doc+='<style>p.image > a:hover > img{position:relative;top:2px;left:2px;}p.name,p.name > a{font-size:7.2pt !important;font-weight:600 !important;}p.name > a{line-height:100% !important;}p.name,p.price{display:inline;}p.inline-left{font-size:12pt !important;}div.search-form,form{display:none !important;}div#header > div.navigation{position:relative;left:-5px !important;}</style>';
    doc+='<style>p.price{white-space:nowrap !important;}*{font-weight:600 !important;}p.price{color:gray !important;font-size:6.4pt !important;}</style>';doc='<style>'+doc.replace(/(<\/?style>)/,'')+'</style>';if(location.href.match(/(&|\/)/)){for(i=0;10>i;i++){if(addElementBody(doc)){break;}}}cSet(words+'.'+page);
 }else if((location.href.match(/:\/\/(www|mp)\.moshimo\.com(\/article\/\d+\/?|\/?\?|\/?$)/))&&(0>location.href.indexOf('d='+z))){location.replace(location.href.substr(0,(location.href+'?').indexOf('?')).replace('//mp.','//www.').replace('/article/','/article/'+z+'/'))}else if(location.href.match(/:\/\/(www|mp)\.moshimo\.com\/article\/\d+\/?\?/)){doc='';function addElementBody(doc){if(ele=document.createElement('div')){with(ele){id='BodyChild';innerHTML=doc;}if(location.href.match(/(\/|=)/)){document.body.appendChild(ele);return(1);}}return(0);}function ifAddStr(ifSw,ifStr){if(!ifSw){ifStr=''}return(ifStr)}
    doc+='<style>html,body{background:#ffffff top center repeat fixed !important;}p.float-left > a:hover > img{position:relative;top:2px;left:2px;}*{font-family:\'Meiryo UI\',\'Meiryo\' !important;}span.text-color-dark{font-weight:600 !important;}</style>';at=document.getElementsByTagName('a');for(i=0;at.length>i;i++){a=at[i];if(0){a.target='_blank';}a=at[i];if(a.innerHTML.match(/トップ/)){a.target='_top';}}at=document.getElementsByTagName('p');for(i=0;at.length>i;i++){a=at[i];if(a.innerHTML.match(/営業日/)){a.innerHTML=a.innerHTML.replace(/((^|<\/span>)<a [^>]*>|<\/a>$)/ig,'');}
    }at=document.getElementsByTagName('div');for(i=0;at.length>i;i++){a=at[i];if((a.innerHTML.match(/^(\r?\n[ ]+)(<select)/))&&(a.innerHTML.match(/(top.location.href)/))){a.innerHTML=a.innerHTML.replace('top.location.href','location.href');};;}at=document.getElementsByTagName('img');for(i=0;at.length>i;i++){a=at[i];if(a.src.match(/\/item_image\/\d+\/\d+\/m\.jpg/)){a.src=a.src.replace('/m.jpg','/l.jpg');}
    }at=document.getElementsByTagName('a');for(i=0;at.length>i;i++){a=at[i];if(a.innerHTML.match(/\/largeorder-bt\.jpg/)){a.innerHTML='';};;}at=document.getElementsByTagName('span');for(i=0;at.length>i;i++){a=at[i];if(a.innerHTML.match(/ taxin /)){p=a.innerHTML;p=p.substr(p.indexOf('>')+1);p=p.substr(0,p.indexOf('<'));price=p.replace(/(,)/ig,'').replace(/([  ]+)/ig,' ').replace(/(^[ ]+|[ ]+$)/ig,'');}
    }at=document.getElementsByTagName('p');for(i=0;at.length>i;i++){a=at[i];if(a.innerHTML.match(/販売価格:/)){a.innerHTML=a.innerHTML.replace('販売価格:','<font style=color:red;font-size:16pt;>お買い得 特価:</font>');}a=at[i];if(a.innerHTML.match(/(税込:/)){a.innerHTML=a.innerHTML.replace('(税込:','<br>(税込:');}a=at[i];if(a.innerHTML.match(/ \/ 代金引換/)){a.innerHTML=a.innerHTML.replace(' / 代金引換',' / 代金引換<br> ');}
    }sw=3;if(sw){at=document.getElementsByTagName('div');ct=1;for(i=0;at.length>i;i++){a=at[i];if((ct)&&(a.innerHTML.match(/^\r?\n<div id="review">/))){ct=0;name=document.title.substr(document.title.indexOf('-')+2).replace('【moshi market】','').replace(/([A-Za-z0-9_])/g,function($0){return(String.fromCharCode($0.charCodeAt(0)-65248))}).replace(/([  ]+)/ig,' ').replace(/(^[ ]+|[ ]+$)/ig,'').replace(/(けいおん)/ig,'ケイオン').replace(/([ァ-ヶ])(\w)/ig,'$1 $2');
      name=name.replace(/(^| )(\w\w?\w?)( |$)/ig,' ').replace(/(^| )(\d\d?\d?)( |$)/ig,' ').replace(/(^| )(\-\-?\-?)( |$)/ig,' ').replace(/( \-|\- )/ig,' ').replace(/([  ]+)/ig,' ').replace(/(^[ ]+|[ ]+$)/ig,'').replace(/(ディーアンドジー)/ig,' ').replace(/(カプチーノメイド)/ig,'メイド').replace(/(AGAIN アゲイン)/ig,'アゲイン').replace(/([\'\,\+\*\/\!\?\_,.・’`+*/☓○×÷\(\)\{\}\[\]\“\”\‘\’()「」【】『』[]〈〉《》〔〕{}〘〙○●◎◯△▲▽▼☆★◇◆□■※]+)/ig,' ').replace(/(20\d+新作|新作|送料無料|即日発送|アキイロ|Co\-Co|ココ| カード)/ig,' ').replace(/(ケイオン)/ig,'けいおん').replace(/([  ]+)/ig,' ').replace(/(^[ ]+|[ ]+$)/ig,'').split('*').join(' ');
      if(name.match(/([\w\-]{6,}|\-)/)){x=document.title.substr(document.title.indexOf('-')+2).replace('【moshi market】','').replace(/([A-Za-z0-9_])/g,function($0){return(String.fromCharCode($0.charCodeAt(0)-65248))}).replace(/([  ]+)/ig,' ').replace(/(^[ ]+|[ ]+$)/ig,'').replace(/(&)/ig,'&').replace(/(-)/ig,'-').replace(/([^0-9A-Z\.\&\-]+)/ig,' ').replace(/(^| )(\w\w?)( |$)/ig,' ').replace(/(^| )(\w\w?)( |$)/ig,' ').replace(/(^| )(\d\d?\d?)( |$)/ig,' ').replace(/(^| )(\d\d?\d?)( |$)/ig,' ').replace(/(^| )(\-\-?\-?)( |$)/ig,' ').replace(/(^| )(\-\-?\-?)( |$)/ig,' ').replace(/( \-|\- )/ig,' ').replace(/( \-|\- )/ig,' ').replace(/([  ]+)/ig,' ').replace(/(^[ ]+|[ ]+$)/ig,'').split('*').join(' ');if(5<x.length){name=x}}
      a.innerHTML='<div style=width:930px;background:#e8f8ff;margin:10px;><p><span class="text-color-dark font22" style=font-size:12pt;margin-left:13px;>■</span></p><p><span style=font-size:12pt;>市場価格調査</span></p><input style=position:relative;top:-1px;margin-left:10px;margin-right:0px;text-weight:400;height=20px; type=button value=" 再表示 " onClick=";location.replace(location.href);return(false);">'+
      '<input style=position:relative;top:-1px;margin-left:10px;margin-right:30px;text-weight:400;height=20px; type=button value=" 別表示 " onClick="window.open(\'//www.google.co.jp/products?q='+encodeURIComponent(name.replace(/[ \ \*\+]+/ig,' '))+'&show=li&scoring=pd&num=100&cond=1&lnk=pruser&price1='+Math.floor(.011*parseInt(price))+'&price2='+Math.floor(1.1*parseInt(price))+'\',\'_blank\');">'+'<p class="float-right review-caution"><a style=margin-left:0px;margin-right:0px; '+ifAddStr((navigator.userAgent.match(/(Opera|Safari|Chrome)/)),'target=_blank')+' href=//userscripts.org/scripts/source/103025.user.js>※</a>この市場価格調査は参考価格です。検索されない場合や中古品が混在する場合があることを御了承下さい。</p><br></span>'+
      ifAddStr(ON*(1<=sw)&&setTimeout("document.googleform.submit();",100),'<span><form name=googleform target=google action=//www.google.co.jp/products method=get accept-charset=utf-8 style=display;none;><input type="hidden" name="q" value="'+(name.replace(/[ \ \*\+]+/ig,' '))+'"><input type="hidden" name="show" value="li"><input type="hidden" name="scoring" value="pd"><input type="hidden" name="num" value="100"><input type="hidden" name="cond" value="0"><input type="hidden" name="lnk" value="pruser"><input type="hidden" name="price1" value="'+Math.floor(.011*parseInt(price))+'"><input type="hidden" name="price2" value="'+Math.floor(1.1*parseInt(price))+'"></form>'+
      '<input style=z-index:0;position:relative;right:0px;bottom:0px;width:100%; type=button value="グーグルで価格調査" onFocus=this.blur() onClick="'+"if(d=document.getElementById('GooglePriceSearch')){with(d){if(0>style.display.indexOf('none')){style.display='none';document.googleform.submit();}else{if(navigator.userAgent.match(/(Safari|Chrome)/)){document.googleform.submit()}style.display=''}}}"+'"><br>'+
      '<div id=GooglePriceSearch style=display:none;><iframe name=google style=position:relative;left:2px; width=99% height=640 marginwidth=0 marginheight=0 frameborder=1 allowtransparency=true scrolling=yes src="//www.google.co.jp/products?q="></iframe></span></div>')+
      ifAddStr(ON*(2<=sw)&&setTimeout("document.bniddersform.submit();",200),'<span><form name=bniddersform target=bnidders action=//www.bidders.co.jp/dap/sv/list2 method=get accept-charset=shift_jis style=display;none;><input type="hidden" name="at" value="FP"><input type="hidden" name="spec_keyword" value="'+(name.replace(/([ \ \*\+]+)/ig,' '))+'"><input type="hidden" name="clow" value="'+Math.floor(.011*parseInt(price))+'"><input type="hidden" name="chigh" value="'+Math.floor(1.1*parseInt(price))+'"><input type="hidden" name="cf" value="N"><input type="hidden" name="srm" value="Y"><input type="hidden" name="sort" value="price,D"></form>'+
      '<input style=z-index:0;position:relative;right:0px;bottom:0px;width:100%; type=button value="ビッダーズで価格調査" onFocus=this.blur() onClick="'+"if(d=document.getElementById('BniddersPriceSearch')){with(d){if(0>style.display.indexOf('none')){style.display='none';document.bniddersform.submit();}else{if(navigator.userAgent.match(/(Safari|Chrome)/)){document.bniddersform.submit()}style.display=''}}}"+'"><br>'+
      '<div id=BniddersPriceSearch style=display:none;><iframe name=bnidders style=position:relative;left:2px; width=99% height=640 marginwidth=0 marginheight=0 frameborder=1 allowtransparency=true scrolling=yes  src="//www.bidders.co.jp/dap/sv/list2"></iframe></span></div>')+
      ifAddStr(ON*(3<=sw)&&setTimeout("document.mbokform.submit();",300),'<span><form name=mbokform target=mbok action=//www.mbok.jp/_l method=get accept-charset=shift_jis style=display;none;><input type="hidden" name="_CODE" value="あ"><input type="hidden" name="_SRC" value="head_sr"><input type="hidden" name="r" value="fc"><input type="hidden" name="gq" value="1"><input type="hidden" name="mem" value="1"><input name="q" type="hidden" value="'+(name.replace(/([ \ \*\+]+)/ig,' '))+'"><input type="hidden" name="cp1" value="'+Math.floor(.011*parseInt(price))+'"><input type="hidden" name="cp2" value="'+Math.floor(1.1*parseInt(price))+'"><input type="hidden" name="c" value=""><input name="vt" type="hidden" value="1"><input type="hidden" name="o" value="2"></form>'+
      '<input style=z-index:0;position:relative;right:0px;bottom:0px;width:100%; type=button value="モバオクで価格調査" onFocus=this.blur() onClick="'+"if(d=document.getElementById('MbokPriceSearch')){with(d){if(0>style.display.indexOf('none')){style.display='none';document.mbokform.submit();}else{if(navigator.userAgent.match(/(Safari|Chrome)/)){document.mbokform.submit()}style.display=''}}}"+'"><br>'+
      '<div id=MbokPriceSearch style=display:none;><iframe name=mbok style=position:relative;left:2px; width=99% height=640 marginwidth=0 marginheight=0 frameborder=1 allowtransparency=true scrolling=yes  src="//www.mbok.jp/_l"></iframe></span></div>')+'</span><br>'+a.innerHTML.replace('購入者の感想','購入者の感想 ');};}
    }sw=1;at=document.getElementsByTagName('form');ct=1;for(i=1;at.length>i;i++){a=at[i];if((ct)&&(a.innerHTML.match(/^\r?\n<input /))){ct=1;a.innerHTML+=ifAddStr(sw,'<span style=position:relative;left:170px;><span><a style=position:absolute;top:'+(120-12*(0<=navigator.userAgent.indexOf('Firefox/3')))+'px; href="javascript:;" onClick="function ifAddStr(ifSw,ifStr){if(!ifSw){ifStr=\'\'}return(ifStr)}function cGet(){if(navigator.userAgent.match(/(Opera|Safari|Chrome)/)){if(typeof localStorage!=\'object\'){if(typeof globalStorage==\'object\'){localStorage=globalStorage[location.hostname]}else{;}}if(localStorage){dt=localStorage.__}}else{dn=\'__utmx=\';dt=document.cookie+\';\';if(0>(of=dt.indexOf(dn))){dt=\'\'}else{dt=unescape(dt.substring(of+dn.length,dt.indexOf(\';\',of+dn.length)))}}return(dt)}dt=cGet();dt=(cGet()+\'.1\').split(\'.\');words=dt[0];page=dt[1];w=words.substr(0,16).replace(/[  ]+/ig,\' \').replace(/(^[ ]+|[ ]+$)/ig,\'\');'+
      'sw=\'R\';wx=(w.replace(/(\\*)/ig,\' \')+\'  \').split(\' \');imgurl=(\',,,,,,,,,,\').split(\',\');j=0;at=document.getElementsByTagName(\'img\');for(i=0;at.length>i;i++){if(10>j){a=at[i];if(a.src.match(/http:\\/\\/image\\.moshimo\\.com\\/item_image\\/\\d+\\/\\d+\\/l\\.jpg/)){imgurl[j]=a.src;j++}}else{break}}twitter=\'\'+ifAddStr(0*((0>document.title.indexOf(wx[0]))||(0>document.title.indexOf(wx[1]))||(0>document.title.indexOf(wx[2]))),w.replace(/(\\*)/ig,\' \')+\' \')+\'PR! \'+document.title.substr(document.title.indexOf(\'-\')+1).replace(/[  ]+/img,\' \').replace(/(^[ ]+|[ ]+$)/img,\'\').replace(/([A-Z\--]+)/ig,\' \').replace(/([\'\\.\\,\\+\\*\\/\\!\\?_,.・’`+*/☓○×÷\\(\\)\\{\\}\\[\\]\\“\\”\\‘\\’()「」【】『』[]〈〉《》〔〕{}〘〙○●◎◯△▲▽▼☆★◇◆□■※]+)/ig,\' \')'+
      '.replace(/( 画質)/ig,\'高画質\').replace(/(超小型カメラ|小型カメラ|キャバ|シリーズ|パートナー?| . )/ig,\'\').replace(/([0-9\--]+)/ig,\' \').replace(/[  ]+/ig,\' \').replace(/(^[ ]+|[ ]+$)/ig,\'\').split(\'@\').join(\'@\').split(\'#\').join(\'#\')+\' http://channelplaza.web.fc2.com/?\'+'+'ifAddStr((\'L\'==sw),location.href.split(\'/\')[5]+\'+\')+encodeURIComponent(w+ifAddStr(1,\'.\'+page)+'+
      'ifAddStr((\'R\'==sw),\'+\'+location.href.replace(\'?\',\'/\').split(\'/\')[4])).replace(/(%2B)/ig,\'+\')+\'&//\'+imgurl[0].substr(7);window.open(\'https://twitter.com/intent/tweet?text=\'+encodeURIComponent(twitter),\'_blank\');return(false);" target=_blank>'+'<img src=//twitter-badges.s3.amazonaws.com/t_logo-a.png alt=Twitter border=0></a></span></span></div>');}
    }doc+='<style>form#header-search-form{display:none !important;}div > ol > li > img{position:relative;left:-9px;width:298px !important;height:300px !important;margin:0px 0px 10px 0px !important;}div > p{float:none !important;margin:0px 0px 0px 0px !important;}a{z-index:0 !important}div#catch{position:relative;left:5px;},div#catch > div > p{background:transparent !important;}div#article-bottom > div > p,p.cart,p.cart-add-button{display:inline;}</style>';
    doc+='<style>span > span > a:hover > img{position:relative;top:2px;left:2px !important;}div.btn-box > input:hover{position:relative;top:2px;left:2px;}h1.item-name{font-size:12pt !important;}*{font-weight:600 !important;}p.shop-price > span.red{color:gray !important;}table.saller > tbody > tr > td{white-space:nowrap !important;}table.saller > tbody > tr > td > div > p{display:block !important;}div#header > div.crossover{position:relative;left:0px !important;}</style>';
    doc+='<style>p.shop-price > span.number{font-size:16pt !important;color:red !important;}p.shop-price > span.yen{font-size:16pt !important;color:red !important;display:inline;}p.shop-price > span.taxin{font-size:12pt !important;color:gray !important;}</style>'; doc+='<style>p.shop-price > span.price > span{font-size:12pt !important;color:gray !important;}div#b-area-top{position:relative;left:5px;}div#container{position:relative;left:0px !important;}</style>';
    doc+='<style>div.data-box-right{float:none !important;margin:10px 0px 10px 0px !important;}div#article-images > p > img{display:none !important;}div.main > p > img{border:1px gray solid !important;}</style>';doc='<style>'+doc.replace(/(<\/?style>)/,'')+'</style>';if(location.href.match(/(&|\/)/)){for(i=0;10>i;i++){if(addElementBody(doc)){break;}}}
 }else if((location.href.match(/:\/\/twitter\.com\/intent\/tweet\/?\?/))&&(z)){if(location.href.match(/(source=webclient&)/)){location.replace(location.href.replace(/(source=webclient&)/img,''))}else{doc='<style>span#char-count{display:none !important;}</style>';function addElementBody(doc){if(ele=document.createElement('div')){with(ele){id='BodyChild';innerHTML=doc;}document.body.appendChild(ele);return(1);}return(0);}function ifAddStr(ifSw,ifStr){if(!ifSw){ifStr=''}return(ifStr)}addElementBody(doc);at=document.getElementsByTagName('textarea');if(a=at[0]){a.innerHTML+=' ';}}
 }else if((location.href.match(/:\/\/twitter\.com\/(#!\/@?[\w\-\.]+|@?[\w\-\.]+|#!\/?$|\/?$)/))&&(z)){setInterval("function imgDisp(pageurl,imgurl){return('</a><div class=img-container><span><a href='+(pageurl)+' target=_blank title=\"\"><img src=http:'+(imgurl)+'></a></span></div><a>')}at=document.getElementsByTagName('embed');for(i=0;at.length>i;i++){a=at[i];if('opaque'!=a.getAttribute('wmode')){a.setAttribute('wmode','opaque')}}at=document.getElementsByTagName('form');a=at[0];a.target='_top';a.action='//twitter.com/search/';t='span,strong'.split(',');for(j=0;2>j;j++){at=document.getElementsByTagName(t[j]);for(i=0;10*12>i;i++){if(a=at[i]){if(a.innerHTML.match(/^(@[\\w\\-\\.]+)$/i)){a.innerHTML='<a target=_top href=/search/'+encodeURIComponent(a.innerHTML)+'>@</a><a target=_top href=/'+encodeURIComponent(a.innerHTML.substr(1))+'>'+a.innerHTML.substr(1)+'</a>';break}}}}"+
    "at=document.getElementsByTagName('body');epsw=0;if(0<at[0].innerHTML.indexOf('expanded-img')){epsw=1;}at=document.getElementsByTagName('a');hrefurl='';imgchk='\x3Cimg ';for(i=0;at.length>i;i++){if(a=at[i]){if(12<=i){if(a.href.match(/(\\.quantumads\\.com\\/)/)){;}else if(a.href.match(/(:\\/\\/twitter\\.com\\/)/)){if(!a.href.match(/(:\\/\\/twitter\\.com\\/[\\w\\-]+$|:\\/\\/twitter\\.com\\/#!\\/search\\?)/)){hrefurl='';if(a.href.match(/(\\/#!\\/[\\w\\-]+\\/status\\/\\d+)/)){a.href=a.href.replace('/#!/','/');a.target='_blank'}}}else{"+
    "if((a.title)||(a.target)){if(a.title.match(/(:\\/\\/twitter\\.com\\/)/)){;}else if((0==a.innerHTML.indexOf(imgchk))||(a.title.match(/(\\.)(jpe?g|png|gif|bmp)(\\/?)(\\?|&|$)/))||(a.title.match(/(:\\/\\/)(twitpic\\.com\\/\\w+\\/?|yfrog\\.com\\/\\w+\\/?|\\w\\.twipple\\.jp\\/\\w+\\/?|\\w+\\.Xmyspace\\.com\\/video\\/|\\w+\\.Xdailymotion\\.com\\/video\\/|cdn\\.vidpay\\.metacafe\\.com\\/action\\/thumbnailDelivery\\/?\\?id=\\d+|tn-skr\\d*\\.smilevideo\\.jp\\/smile\\/?\\?i=\\d+|item\\.shopping\\.c\\.yimg\\.jp\\/|image\\.moshimo\\.com\\/)/))){if((0==a.innerHTML.indexOf(imgchk))&&(0<a.innerHTML.indexOf('&amp;//'))){if(0<a.href.indexOf('://ameblo.jp/')){a.href=a.href.substr(0,(a.href.replace('?&//','&//')+'&//').indexOf('&//'));for(j=1;10>=j;j++){if(0<at[i-j].title.indexOf('&//')){at[i-j].href=a.href;break}}}a.innerHTML=(a.innerHTML.substr(0,a.innerHTML.indexOf('://')+1)+a.innerHTML.substr(a.innerHTML.lastIndexOf('&amp;//')+5))}"+
    "else if((0==a.innerHTML.indexOf(imgchk))&&(0<a.href.indexOf('&//'))&&(0<a.innerHTML.indexOf('://www.metacafe.com/thumb/'))&&((0<a.href.indexOf('&//cdn.vidpay.metacafe.com/action/thumbnailDelivery?id='))||(0<a.href.indexOf('&//s1.mcstatic.com/thumb/')))){a.innerHTML=(a.innerHTML.substr(0,a.innerHTML.indexOf('://')+1)+a.href.substr(a.href.lastIndexOf('&//')+1)+a.innerHTML.substr(a.innerHTML.indexOf('\"',a.innerHTML.indexOf('://')+1)))}else if((0==a.innerHTML.indexOf(imgchk))&&(a.innerHTML.match(/(\\??&amp;\\.jpg)/i))){a.innerHTML=(a.innerHTML.replace(/(\\??&amp;\\.jpg)/i,''))}else if((0==a.innerHTML.indexOf(imgchk))&&(0<a.href.indexOf('&//'))){;}"+
    "else if((epsw)&&(0>a.innerHTML.indexOf('<span>'))&&((0<a.title.indexOf('&//'))||(a.title.match(/(\\.)(jpe?g|png|gif|bmp)(\\/?)(\\?|&|$)/)))){a.innerHTML+=imgDisp(a.href,a.title.substr(a.title.replace('://','&//').lastIndexOf('&//')+1).replace(/(\\.)(jpe?g|png|gif|bmp)(\\/?)(\\?|&|$)/img,'$1$2$4'));a.title=''}else if(hrefurl){a.href=hrefurl}if(0<a.innerHTML.indexOf('://i.ytimg.com/vi/')){a.innerHTML=a.innerHTML.replace('/default.jpg','/0.jpg')}else if(0<a.innerHTML.indexOf('://lohas.nicoseiga.jp/thumb/')){a.innerHTML=a.innerHTML.replace('q','i')}}else{hrefurl=a.href;if((epsw)&&(0<a.title.indexOf('ustream.tv/'))&&(0>a.innerHTML.indexOf('<span>'))&&(0>at[i+1].innerHTML.indexOf(imgchk))&&(0>at[i+2].innerHTML.indexOf(imgchk))&&(0>at[i+3].innerHTML.indexOf(imgchk))){a.innerHTML+=imgDisp(a.href,'//cdn2.ustream.tv/static/images/profile:0.png');a.title=''}}}}}else{if(a.href.match(/(\\/#!\\/)/)){a.href=a.href.replace(/(\\/#!\\/)/,'/')}}}};",777);imgWidth=96;if(0>location.href.indexOf('/status/')){imgWidth*=2}
    setTimeout("doc='<style>a:focus{outline:none !important}div.img-container > a > span > img{display:none}div.img-container,div.stream-item.hovered-stream-item:not(.focused-stream-item) div.img-container > span > a > img,div.stream-item:hover:not(.focused-stream-item) div.img-container > span > a > img{width:"+(imgWidth)+"px !important;max-width:none !important;max-height:none !important;}div.stream-item.hovered-stream-item:not(.focused-stream-item) div.img-container > span,div.stream-item:hover:not(.focused-stream-item) div.img-container > span{position:relative;left:1px;}div.stream-item.hovered-stream-item:not(.focused-stream-item) div.img-container > span > a:first-child,div.stream-item:hover:not(.focused-stream-item) div.img-container > span > a:first-child{padding-left:0px !important}</style>';function addElementBody(doc){if(ele=document.createElement('div')){with(ele){id='BodyChild';innerHTML=doc;}document.body.appendChild(ele);}}addElementBody(doc);",555);
}else if((location.href.match(/:\/\/www\.facebook\.com\/(#!\/|[\w\-\.\%]+#!\/|profile\.php\?id=\d+#!\/|)([\w\-\.\%]+$|profile\.php\?id=\d+$|pages\/[\w\-\.\%]+\/\d+$|$|groups\/[\w\-\.\%]+\/)/))&&(!document.getElementById('pagelet_contact'))){for(n=0;10>n;n++){setTimeout("at=document.getElementsByTagName('iframe');if(3>at.length){at=document.getElementsByTagName('a');sw=0;ix=0;imgchk='\x3Cimg ';for(i=0;(2000>i)&&(at.length>i);i++){a=at[i];"+
    "if((0==sw)&&(0==a.innerHTML.indexOf(imgchk))&&(0<a.innerHTML.indexOf('://external.ak.fbcdn.net/safe_image.php?'))){sw=1;ix=i}else if((0==sw)&&(0==a.innerHTML.indexOf(imgchk))&&(0<a.innerHTML.indexOf('://platform.ak.fbcdn.net/www/app_full_proxy.php?'))){sw=2;ix=i}else if((0==sw)&&(0==a.innerHTML.indexOf(imgchk))&&(0<a.innerHTML.indexOf('://photos-'))&&(0<a.innerHTML.indexOf('.ak.fbcdn.net/'))){sw=3;ix=i;i--}else if((0==sw)&&(0==a.innerHTML.indexOf(imgchk))&&(0<a.innerHTML.indexOf('://vthumb.ak.fbcdn.net/'))){sw=4;ix=i}"+
    "else if((sw)&&(ix)){for(j=2;10>=j;j++){if(0==at[i-j].innerHTML.indexOf(imgchk)){break}}if(0>at[i-j].innerHTML.indexOf('http:'+'//twitter-badges.s3.amazonaws.com/t_logo-a.png')){imgurl=at[ix].innerHTML;ckn=0;ck='http:'+'//';imgurl=imgurl.substr(imgurl.indexOf(ck)+ckn);imgurl=imgurl.substr(0,imgurl.indexOf('\"')).split('&amp;').join('&');if(1){if(1==sw){ckn=5;ck='&url='}else if(2==sw){ckn=5;ck='&src='}}imgurl=imgurl.substr(imgurl.indexOf(ck)+ckn);imgurl=imgurl.replace(/(http%3A%2F%2Fnews\\.nicovideo\\.jp%2Fphoto\\d+%2F\\d+)(t\\.jpg)/img,'$1p.jpg').replace(/(http%3A%2F%2Fi\\d+\\.ytimg\\.com%2Fvi%2F[\\w\\-]+%2F)(default\\.jpg)/img,'$10.jpg');"+
    "imgurl=decodeURIComponent(imgurl);if(!imgurl.match(/(\\.)(jpe?g|png|gif|bmp)/)){if(!imgurl.indexOf('?')){imgurl+='?'}imgurl+='&.jpg'}if((imgurl.match(/(\\.ytimg\\.com\\/vi\\/)/))&&(0)){imgurl=''}text=a.innerHTML.replace(/(<\\/?)(span|wbr)([^>]*>)/img,'').split('&amp;').join('&');jmpurl='';if(text.match(/(https?:\\/\\/.+)$/)){jmpurl=text.substr(text.indexOf('http'));text=text.substr(0,text.indexOf('http'));if(jmpurl.match(/^(http:\\/\\/gyao\\.yahoo\\.co\\.jp\\/)/)){jmpurl=jmpurl.substr(0,(jmpurl+'&').indexOf('&'))+'&rep=2&size=l'}};if((jmpurl.match(/(^https?:\\/\\/)/))&&(a.href.match(/(\\.)(jpe?g|png|gif|bmp)/))){a.href=jmpurl;at[i-1].href=jmpurl}"+
    "if(3==sw){text=''}else{text+=' '}if(0<text.indexOf(' ► ')){text=text.substr(text.indexOf(' ► ')+3)}twurl=a.href.replace(imgurl,'');if(0<twurl.indexOf('?&//')){twurl=twurl.substr(0,twurl.indexOf('?&//'))}else if(0<twurl.indexOf('&//')){twurl=twurl.substr(0,twurl.indexOf('&//'))}if((0>imgurl.indexOf('&//'))&&(0>imgurl.indexOf('?'))&&(0<imgurl.indexOf('&'))){imgurl=imgurl.replace('&','?&')}at[i-j].innerHTML=at[i-j].innerHTML+'</a><a></a><span style=position:absolute;><br><a onFocus=this.blur(); target=_blank href=http://twitter.com/intent/tweet?text='+encodeURIComponent((text.split('@').join('@').split('#').join('#')+twurl+' '+imgurl).split('  ').join(' ').split('%2F').join('/').split('%3F').join('?'))+'><img border=0 src=http:'+'//twitter-badges.s3.amazonaws.com/t_logo-a.png></a></span><a >';}if(3==sw){if(0==at[i+1].innerHTML.indexOf(imgchk)){i++;if(0==at[i+1].innerHTML.indexOf(imgchk)){i++}}}sw=0;ix=0}}}",n*3333);}
}}})();

0 comments:

Post a Comment