AutoBGM

By .paradise Last update Mar 20, 2010 — Installed 3,448 times. Daily Installs: 2, 39, 9, 11, 8, 5, 4, 11, 5, 1, 3, 3, 1, 2, 0, 13, 8, 13, 32, 2, 7, 9, 6, 3, 17, 4, 4, 0, 1, 3, 12

There are 482 previous versions of this script.

Add Syntax Highlighting (this will take a few seconds, probably freezing your browser while it works)

//$(document).ready(exec);function exec(){

// ==UserScript==
// @description Version 00.07.0482
// @name    AutoBGM
// @version 00.07.0482
// @author .paradise
// @include http://*
// @exclude *.nicovi*
// ==/UserScript==
ON=1;OFF=0;NO=0;

WallPaperBodyCSS1="html,body{background:url('http://i2.ytimg.com/bg/uwsKOvy2pF_Nw6ZHBEnxzw/144.jpg') transparent left top repeat fixed}";
WallPaperBodyCSS2="html,body{background:url('http://i2.ytimg.com/bg/uwsKOvy2pF_Nw6ZHBEnxzw/144.jpg') transparent left top repeat fixed}";
HDselectVID=OFF; PlayerHeight=25; HoldPicSize=ON; VideoAspect=9/16;KeyWords=".cgi,.cgi,.cgi,.cgi,.cgi"; FlashCheck=0; Translate="http://translate.google.com/";
(function(){function AutoBGM(sv,ky,hd,sw,su,tv,ts,tp,tm,hp,ph,va,ec,tr,wp1,wp2){if(OFF){alert(location.href)}
  db=document.getElementsByTagName('body');bd=db[0].innerHTML;if(0<bd.indexOf(' href="//userscripts.org/scripts/source/45578.user.js"')){return}
  if(0<ec){bd=bd.match(/(<embed [^>]*>)/ig);if(bd){for(i=0;bd.length>i;i++){if((ec>=bd[i].length)&&(0>bd[i].indexOf('http:'))&&(0<bd[i].indexOf('.swf'))){alert(bd[i])}}}}
  tv&=1;su&=1;hd&=1;sw&=1;ur=1;ab=0;ch=0;gpos=0;if(1/16>va){va=1/16}if(1<va){va=1}if(300>ts){ts=300}if(1280<ts){ts=1280}if(1>tm){tm=1}if(3<tm){tm=3}if(25>ph){ph=25}if(40<ph){ph=40}
  ff=0;if(navigator.userAgent.match(/Firefox/)){ff=1}nv=0;if(navigator.userAgent.match(/Navigator/)){nv=1}op=0;if(navigator.userAgent.match(/Opera/)){op=1}
  sf=0;if(navigator.userAgent.match(/Safari/)){sf=1}ir=0;if(navigator.userAgent.match(/Iron/)){ir=1} dd='body';lh=location.href;
  hh=Math.floor(ph*30/25+ts*3/4)-ph;th=Math.floor(ts*va);tb=' target=_blank ';pa='pandora';br='<br>';livetubecc='a2.livetube.cc';
  lh1=lh.substr(lh.lastIndexOf('/')+1);ls1=location.search.substr(1);bgc=CSS("html,body{background:transparent}");
  ky=ky.split(',');key=0;for(i=0;ky.length>i;i++){if(0<=lh.indexOf(ky[i])){key=1;break}}sh=0;
  ys=0;if(lh.match(/(veoh\.com\/|\.myspace\.com\/|youtube\.com\/|dailymotion\.com\/|userscripts\.org|search)/)){ys=1}
  if((0<lh.indexOf(sv))||(0<lh.indexOf('?xurl='))||(0<lh.indexOf('_tag?'))){return}
  else if(lh.match(/:\/\/\w*\.?dailymotion\.com\/\w*\/search\//)){;return}else if(lh.match(/:\/\/\w*\.?(opticast\.co\.jp\/)/)){;return}
  else if(0<lh.indexOf('://greasefire.')){location.replace(lh.replace('greasefire.',''))}else if(lh.match(/\?+:\/+/)){
    db=document.getElementsByTagName('html');db[0].innerHTML='<noembed>';location.href='//tinyurl.com/'+location.search.replace(/\?+:\/+/,'');return}
  else if(lh.match(/:\/\/\w*\.?youtube\.com\.edgesuite\.net\//)){
    db=document.getElementsByTagName('body');db[0].innerHTML=db[0].innerHTML.replace(/(<embed )/ig,'<param name="quality" value="high"/>$1 quality="high"');return}
  else if(lh.match(/:\/\/ameblo.jp\/\d?\d?\?\/\//)){location.href=ls1}else if(lh.match(/:\/\/ameblo.jp\/\w?\w?\?\/\//)){
    document.title=lh1;ls1=ls1.replace('_s.','.');db=document.getElementsByTagName('html');db[0].innerHTML='<a target=_blank onFocus=this.blur() href=//ameblo.jp/1?'+ls1+'><img border=0 align=top width='+(((ON+ON)==hp)*ts+((ON+ON)!=hp)*tp)+' src='+ls1+' onmouseover="if(('+ts+'!=this.width)||('+hp+'==ON)){this.width='+ts+'}else{this.width='+tp+'}" '+ifaddstr(!hp,'onmouseout="this.width='+tp+';"')+' onerror="this.height=5;"></a><noembed>';return}
  else if(lh.match(/:\/\/fc2\.com\/1\/\?\/\//)){location.href=ls1}else if(lh.match(/:\/\/rss\.fc2\.com\/\?\/\//)){
    document.title=lh1;db=document.getElementsByTagName('html');db[0].innerHTML='<a target=_blank onFocus=this.blur() href=//fc2.com/1/?'+ls1+'><img border=0 align=top width='+(((ON+ON)==hp)*ts+((ON+ON)!=hp)*tp)+' src='+ls1+' onmouseover="if(('+ts+'!=this.width)||('+hp+'==ON)){this.width='+ts+'}else{this.width='+tp+'}" '+ifaddstr(!hp,'onmouseout="this.width='+tp+';"')+' onerror="this.height=5;"></a><noembed>';return}
  else if(lh.match(/:\/\/\w*\.?geocities\.yahoo\.co\.jp\/se\/not_found\/\d?\d?\?\/\//)){location.href=ls1}else if(lh.match(/:\/\/\w*\.?geocities\.yahoo\.co\.jp\/se\/not_found\/\w?\w?\?\/\//)){
    document.title=lh1;db=document.getElementsByTagName('html');db[0].innerHTML='<a target=_blank onFocus=this.blur() href=//www.geocities.jp/1?'+ls1+'><img border=0 align=top width='+(((ON+ON)==hp)*ts+((ON+ON)!=hp)*tp)+' src='+ls1+' onmouseover="if(('+ts+'!=this.width)||('+hp+'==ON)){this.width='+ts+'}else{this.width='+tp+'}" '+ifaddstr(!hp,'onmouseout="this.width='+tp+';"')+' onerror="this.height=5;"></a><noembed>';return}
  else if(lh.match(/:\/\/([\w\-]*\.?livetube\.cc|114\.\d+\.\d+\.\d+|118\.\d+\.\d+\.\d+|119\.\d+\.\d+\.\d+|122\.\d+\.\d+\.\d+|123\.\d+\.\d+\.\d+|124\.\d+\.\d+\.\d+)\//)){if(0>lh.indexOf('://'+livetubecc+'/')){location.replace(LH.replace(/(:\/\/[\w\-]*\.?livetube\.cc\/|:\/\/\d+\.\d+\.\d+\.\d+\/)/,'://'+livetubecc+'/'));return}else{
    db=document.getElementsByTagName('body');bd=db[0].innerHTML.replace(/(<img src="\/images\/loading\.gif" )(align="absmiddle" width="24" height="24"|align="absmiddle" height="24" width="24"|width="24" align="absmiddle" height="24")(>)/ig,'<font color=gray>◎</font>').split('onmouseover=').join(' '); db[0].innerHTML=CSS("img{display:block}")+bd.split(' cellpadding="0"').join(' cellpadding="1"').split('<th>').join('<th width=50 nowrap>').split('<td>').join('<td width=50 nowrap>').split('<a href="/').join('<a target=_top href="/');return}}
  else if(lh.match(/:\/\/ameblo\.jp\/[\w\-]+\/(|page\-\d+\.html|image\-\d+\-\d+\.html)/)){ab=1;
    db=document.getElementsByTagName('body');bd=db[0].innerHTML.split(' id="imageLink" ').join(' ').split(' id="imageMain" ').join(' ');x=lh.split('/');db[0].innerHTML=bd.replace('://stat.ameba.jp/p_skin/cmn/img/spacer.gif','://stat.ameba.jp/p_skin/'+x[3]+'/img/header.jpg');return}
  else if(parent.location!=this.location){return}
  else if(lh.match(/:\/\/c\d*\.2ch\.net\//)){if(lh.match(/(\/\-\/|\/\-\.bbb|\-\.ccc)/)){location.replace(lh.replace('/-/','/1.cccEEE/').replace('/-.bbb','/1.ccc').replace('/-.ccc','/1.ccc'))}db=document.getElementsByTagName('body');bd=db[0].innerHTML;bd=bd.split('<hr>');bd[0]='';x=bd[bd.length-1];bd[0]=x.substr(0,x.lastIndexOf('<br>')+4);bd[bd.length-1]=bd[0];if(('http:'+'//c.2ch.net/'!=lh)&&(0>lh.indexOf('1.cccEEE/1-'))&&(0>lh.indexOf('/C'))&&(0>lh.indexOf('/i'))&&(0>lh.indexOf('-/1-'))&&(0>lh.indexOf('/w'))){x=x.substr(x.lastIndexOf('<textarea>')+10);x=x.substr(0,x.indexOf('http:'));bd[0]=bd[0]+br+br+x}
    bd=bd.join(br+br+br);bd=bd.replace(/(\/test\/)(\-\/)/ig,'$11.cccEEE/').replace(/(\/i">)/ig,'/1-1001">');bd=bd.replace(/(<a href=")(\/[\/\w\+\-\.]+)(">)(2ch..)(<\/a>)/ig,'$1$2$3http:'+'//c.2ch.net$2$5').replace(/( href=")([^"']+)(">)(2ch)(<\/a>)/ig,'$1$2$3$2$5').replace(/(<a href="\d+\/)(i)">/,'$11-1001');if(0>lh.indexOf('/C')){db[0].innerHTML=CSS(wp1)+SearchBOX()+bd} }
  else if(lh.match(/:\/\/\w*\.?luna\.tv\/$/)){db=document.getElementsByTagName('body');
    db[0].innerHTML=SearchBOX()+db[0].innerHTML;return} else if(lh.match(/:\/\/\w*\.?(himado\.in\/)/)){;}
  else if(lh.match(/:\/\/up\.[a-z]+\.[a-z]+\/1\/\?/)){i=ls1.replace(/(\/\/up\d*\.\w+\.\w+\/\w+\/[a-z_]+)(0*)(\d+)(\.jpg)/ig,'$3');i=eval(i)-1;ls0=ls1.replace(/(\/\/up\d*\.\w+\.\w+\/\w+\/[a-z_]+)(0*)(\d+)(\.jpg)/ig,'$1$2'+i+'$4'); document.title=lh1;db=document.getElementsByTagName('html'); bd=db[0].innerHTML;lh0=lh.replace(ls1,'');setTimeout('location.href=\''+lh0+ls0+'\';',10000);
    db[0].innerHTML='<center><a target=_top onFocus=this.blur() href='+lh0+ls0+'><img border=0 align=top height=100% src='+ls1+' onerror="location.href=\''+lh0+ls0+'\';"></a><noembed>';return}
  else if(lh.match(/:\/\/www\.wassyoi\.info\//)){db=document.getElementsByTagName('body');
    db[0].innerHTML=SearchBOX()+db[0].innerHTML.replace(/(<a href="\.\.\/"><img src="\.\.\/img\/title\.jpg" border="0"><\/a>)/ig,'');return}
  else if(lh.match(/:\/\/\w*\.?(google\.co\.jp\/search\?|s\.luna\.tv\/search\.aspx\?|jbbs\.livedoor\.com\/|search\.goo\.ne\.jp\/|www\.yahoo\.co\.jp\/|www\.yahoo\.com\/|istc\.kobe\-u\.ac\.jp\/|www\.ikioi2ch\.net\/)/)){db=document.getElementsByTagName('body');
    db[0].innerHTML=CSS("#result_header{background:transparent}"+wp1)+SearchBOX()+db[0].innerHTML}  
  else if(lh.match(/:\/\/\w+\.(big\.or\.jp\/)/)){if(!nv){gpos=1}dd='dd';db=document.getElementsByTagName('body');ch=1;bd=db[0].innerHTML.split('#ff5500').join('').split('#8080ff').join('').split('#7777aa').join('');
    db[0].innerHTML=CSS(wp2)+SearchBOX()+bd.replace(/(<object .*>)(<\/object>)/ig,'').replace(/(<iframe .*>)(<\/iframe>)/ig,'')}
  else if(lh.match(/:\/\/\jbbs\.?livedoor\.jp\//)){if(!nv){gpos=1}dd='dd';db=document.getElementsByTagName('body');bd=db[0].innerHTML;if(0<bd.indexOf('//www.nicovideo.jp/thumb_watch/')){return}bd=db[0].innerHTML.split('#efefef').join('').split('#EFEFEF').join('').split('#ccffcc').join('').split('#CCFFCC').join('').split('rgb(').join('(').split(' bgcolor="white"').join(' ');
    db[0].innerHTML=CSS("#result_header{background:transparent}"+wp1)+SearchBOX()+bd}
  else if(lh.match(/:\/\/\w*\.?(bbspink\.com\/|2ch\.net\/|unkar\.jp\/|unkar\.org\/|yomi\.mobi\/)/)){if(!nv){gpos=1}dd='dd';db=document.getElementsByTagName('body');ch=1; bd=db[0].innerHTML.split('#efefef').join('').split('#EFEFEF').join('').split('#ccffcc').join('').split('#CCFFCC').join('').split('rgb(').join('(').split(' bgcolor="white"').join(' ').split(' style="background-color:').join('"');bd=bd.replace(/(<object .*>)(<\/object>)/ig,'').replace(/(<iframe .*>)(<\/iframe>)/ig,'').replace(/(<a href="http:\/\/ofuda\.cc\/">.*>)(<\/a>)/ig,'');
    db[0].innerHTML=CSS("#result_header{background:transparent}"+wp1)+SearchBOX()+bd}
  else if(lh.match(/:\/\/\w*\.?(vote\d*\.net\/|hissi\.org\/)/)){if(!nv){gpos=1}if(lh.match(/:\/\/(\w*\.?vote\d*\.\w+)\//)){;}else{dd='dd'}db=document.getElementsByTagName('body');ch=1;bd=db[0].innerHTML.split('#80ffff').join('').split('#80FFFF').join('').split('#e5ffff').join('').split('#E5FFFF').join('').split('#7dd8e6').join('').split('#7DD8E6').join('').split('#e5ffe5').join('').split('#E5FFE5').join('').split('#efefef').join('').split('#EFEFEF').join('').split('#ccffcc').join('').split('#CCFFCC').join('').split('rgb(').join('(').split(' bgcolor="white"').join(' ').split(' style="background-color:').join('"');bd=bd.replace(/(<object .*>)(<\/object>)/ig,'').replace(/(<a href="http:\/\/ofuda\.cc\/">.*>)(<\/a>)/ig,'');
    db[0].innerHTML=CSS("#result_header{background:transparent}"+wp1)+SearchBOX()+bd}
  else if(lh.match(/:\/\/up\d*\.[a-z]+\.[a-z]+(\/|\/[a-z_]+\.php\?)/)){db=document.getElementsByTagName('body');ch=1;x=lh.split('/');i=lh.split('.');x='//'+x[2]+'/img/'+i[1].substr(0,7)+'up';if(0==x.indexOf('//up2.')){x=x.replace('raup','ra')}else if(0==x.indexOf('//up3.')){x=x.replace('raup','rakabe');} else if(0==x.indexOf('//up4.')){x=x.replace('doraup','flash')}else if(0==x.indexOf('//up6.')){x=x.replace('pandoraup','haru_')}bd=db[0].innerHTML.split('onclick=').join('').split('onkeypress=').join('').split('"window.open(this.href, \'\');return false;"').join('');bd=bd.replace(/( href=")(\/index\.php\?id=)(\d+)(")/ig,' target=_blank $1//up.'+pa+'vote.net/1/?'+x+'$3.jpg$4');
    db[0].innerHTML=CSS(wp1)+SearchBOX()+bd.replace(/(<object .*>)(<\/object>)/ig,'').replace(/(<iframe .*>)(<\/iframe>)/ig,'')}
  else if(lh.match(/:\/\/(userscripts|greasefire\.userscripts)\.org(\/scripts\/search\?q=|\/tags\/[\w\-]+|\/scripts$|\/scripts\/show\/45578$)/)){;}else if(key){;}else if(0<lh.indexOf('search')){sh=1}else{return}
  if('body'==dd){db=document.getElementsByTagName(dd);bd=db[0].innerHTML;if(bd.match(/@(VID|BG[MS])@\?/)){;}else if(bd.match(/\.(jpeg|bmp|jpg|gif|png)\//)){;}else if(bd.match(/:\/\/(\w*\.?youtube\.com|\w*\.?nicovideo\.)\//)){;}else{dd=''}}
  if(dd){if('body'!=dd){db=document.getElementsByTagName(dd)}pc=1;us=1;bw=document.body.clientWidth;bw=screen.width;if(op||sf){bw=0}
    tb0='<a style='+ifaddsplit(gpos,',position:relative;right:'+bw+'px;')+' target=_blank onFocus=this.blur() href=$3$4$5$6><font style='+ifaddsplit(gpos,',position:relative;left:'+bw+'px;')+'>';tb1=' onFocus=this.blur()$1</a>';
    tb0v='</font><img style=z-index:9999;'+ifaddsplit(gpos,',position:relative;left:'+bw+'px;')+'display:block; border=0 onerror="this.height=5;" width=';
    tb0e='</font><img style=z-index:9999;'+ifaddsplit(gpos,',position:relative;left:'+bw+'px;')+'display:block; border=0 onmouseover="if(('+ts+'!=this.width)||('+hp+'==ON)){this.width='+ts+'}else{this.width='+tp+'}" '+ifaddstr(!hp,'onmouseout="this.width='+tp+';"')+' onerror="this.height=5;" width=';
    tb1e='</font><iframe style=z-index:9999;display:block; frameborder=0 allowtransparency=true scrolling=no width=';
    tb2e='</font><embed style=z-index:9999;display:block; allowscriptaccess=always allowfullscreen=true quality=high type=application/x-shockwave-flash width=';
    tb0=tb1+tb0; tb0v+=ts; tb0e+=(((ON+ON)==hp)*ts+((ON+ON)!=hp)*tp);tb1e+=ts+' height='+Math.floor(th*tm*tp/ts);tb2e+=ts+' height='+(th+ph);tb2='';
    for(k=2;0<=k;k--){if(0==pc){pc++}
      for(j=db.length-1;0<=j;j--){bd=' '+db[j].innerHTML.replace(/(<wbr>)/ig,'');if(sh){bd=bd.replace(/(<br>  )/ig,'')}bd=bd.replace(/(<br>)([^ ])/ig,'$1 $2');px='';bs=0;bs=1;ls=0;
        if(ys){if(0==k){sl=bd.indexOf('@VID@\?')}else if(1==k){sl=bd.indexOf('@BGM@\?')}else{sl=bd.indexOf('@BGS@\?')}}
        else{if(0==k){sl=bd.lastIndexOf('@VID@\?')}else if(1==k){sl=bd.lastIndexOf('@BGM@\?')}else{sl=bd.lastIndexOf('@BGS@\?')}}
        if((0<=sl)||(0==k)){b0=bd.substr(0,sl+ls);b1=bd.substr(sl+ls);ct=0;
          for(l=bs;1>=l;l++){if(l){bx=b1}else{bx=b0}
            if(pc){if(0==k){bx=bx.replace(/(@VID@)(\?)<a/ig,'$1 <a').split('@VID@?')}
              else if(1==k){bx=bx.replace(/(@BGM@)(\?)<a/ig,'$1 <a').split('@BGM@?')}
              else{bx=bx.replace(/(@BGS@)(\?)<a/ig,'$1 <a').split('@BGS@?')}bl=bx.length-1;if((ys)&&(bl>0)){bl=1}
              for(i=bl;(bl<=i)&&(0<i);i--){bp=bx[i].replace(/([ .,;\*<>\s])/ig,'"').split('"');bp=bp[0].split('?').join(' ');
                if(5<=bp.length){ct++;zm=0;
                  bp=bp.substr(0,(bp+'&').indexOf('&'));bp=bp.substr(0,(bp+'%').indexOf('%'));bp=bp.substr(0,(bp+';').indexOf(';'));
                  if(su){pu=sv+'/youtube.htm?0?'+bp}else{vx=bp;
                    if(0>vx.indexOf(':')){if(('v'==vx.substr(0,1))&&(14<vx.length)){vd=vx.substr(vx.indexOf('v'));vt=vx.substr(0,vx.indexOf('v'))}else if(16<=vx.length){vd=vx.substr(0,16);vt=vx.substr(16)}else{vd=vx.substr(0,11);vt=vx.substr(11)}} else{vd=vx.substr(vx.indexOf(':')+1);vt=vx.substr(0,vx.indexOf(':'))}vd=vd.substr(0,(vd+'+').indexOf('+')); if(0){;}
                    else if(vd.match(/([:\/]diary[:\/]|[:\/]zpdia\/p[:\/])/)){zm=1;pu=(vd.substr(0,50).replace('diary','zpdia/p').split('/').join(':')+':::::').split(':');pu='zoome.jp/'+pu[0]+'/'+pu[1]+'/'+pu[2]+'/'+pu[3]}
                    else if(vd.match(/([:\/]media[:\/]|[:\/]zpmed\/p[:\/])/)){zm=1;pu=(vd.substr(0,50).replace('media','zpmed/p').split('/').join(':')+':::::').split(':');pu='circle.zoome.jp/'+pu[0]+'/'+pu[1]+'/'+pu[2]+'/'+pu[3]}
                    else if(31<=vd.length){x=(0>vd.indexOf('v'));pu=vd.substr(0,5)+(':v'+vd.substr(6,6-x)).replace('vv','v')+(':v'+vd.substr(13-x,20-x))}
                    else if(25<=vd.length){x=(0>vd.indexOf('v'));pu=vd.substr(0,5)+(':v'+vd.substr(6,6-x)).replace('vv','v')+(':v'+vd.substr(6,20-x)).replace('vv','v')}
                    else if(17<=vd.length){x=(0>vd.indexOf('v'));pu=vd.substr(0,5)+(':v'+vd.substr(6,6-x)).replace('vv','v');pu+=(':v'+vd.substr(6,6-x)).replace('vv','v')+'00000000000000'.substr(vd.substr(13-x,20).length)+vd.substr(13-x,20)}
                    else if(('a'==vd[0])&&(13==vd.length)){if(1){pu=livetubecc+'/p01.swf flashvars=s='+vd}else{pu=livetubecc+'/swf/FLVPlayer_Progressive.swf name=stream_host salign=LT ';pu+='flashvars="&MM_ComponentVersion=1&skinName=http'+'://'+livetubecc+'/swf/Clear_Skin_3&streamName=http'+'://'+livetubecc+'/stream/'+vd+'&autoPlay=true&autoRewind=true&loop=true"'}}
                    else if((10>=vd.length)&&(vd.match(/vi\d+/i))){pu='vimeo.com/moogaloop.swf?clip_id='+vd.substr(2,8)+'&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1&autoplay=1'}
                    else if((8>=vd.length)&&(vd.match(/[a-z]+/i))){pu='www.dailymotion.com/swf/'+vd.substr(0,8)+'&autoPlay=1'}
                    else if(11>vd.length){pu='mediaservices.myspace.com/services/media/embed.aspx/m='+vd+',t=1,mt=video'}
                    else if(('v'==vd[0])&&(14<vd.length)){pu='www.veoh.com/static/swf/webplayer/WebPlayer.swf?version=AFrontend.5.4.2.3.1001&permalinkId=';pu+=vd.substr(0,18)+'&player=videodetailsembedded&videoAutoPlay=1&id=anonymous&inVeoh=true'}
                    else{if(16<=vd.length){pu='www.youtube.com/p/'+vd.substr(0,16)+'&autoplay=1';}else{pu='www.youtube.com/v/'+vd.substr(0,11)+'&autoplay=1';}pu+='&hd='+((0==k)*hd)+'&hl=en&fs=1&iv_load_policy=3&color1=0x000000&color2=0x000000&border=0';
                  } }wh=' bgcolor=000000 frameborder='+sw+' width='+(sw*ts)+' height='+(sw*(th+ph))+' ';
                  if(su){px+=' <iframe style=display:block; allowtransparency=true'+wh+'scrolling=no src="http:'+'//'+pu+'"></iframe>'}else{
                    if((!zm)&&(17<=vd.length)){px+=' '+GyaoBGM(pu,sw,ts,ph,th)}
                    else{px+=' <embed style=z-index:9999;display:block; allowscriptaccess=always allowfullscreen=true'+wh+'quality=high type=application/x-shockwave-flash src=http:'+'//'+pu+'></embed>'}
                  if(px.match(/(vimeo\.com\/|dailymotion\.com\/)/)){px=px.replace('height='+(th+ph),'height='+(th))}else if(px.match(/(zoome\.jp\/|\w*\.?livetube\.cc\/|\d+\.\d+\.\d+\.\d+\/)/)){px=px.replace('height='+(th+ph),'height='+(hh+ph))}
                } }pc--}if(ct){if(sw){if(1|us){bx='';
                  if(ON){bx=b1.replace(' ','\n').replace(' ','\n').replace('<','\n').replace('\t','\n');bx=bx.substr(0,bx.indexOf('\n'));
                    bd=b0+bx+px+b1.substr(bx.length)}else{bd=b0+px+b1} }
                  else{is='\n\n<table style="width:';bd=(b0+b1).replace(is,px+br+is)} }
                else{bd=b0+px.replace('display:block;','').split('> <').join('><')+b1;
            } } }if(0==k){rg0=/(@VID@\?|@BG[MS]@\?|<\/a>[\?\+])(\d*)(:?)([\w\-]+)([:\/]diary[:\/]|[:\/]zpdia\/p[:\/])(\d+)([^\w\-])/ig; rp0='$1$2$3<a'+tb+'href=http:'+'//zoome.jp/$4/diary/$6///?no_bt=1>$4$5$6</a>$7';
              rg1=/(@VID@\?|@BG[MS]@\?|<\/a>[\?\+])(\d*)(:?)([\w\-]+)([:\/]media[:\/]|[:\/]zpmed\/p[:\/])(\d+)([^\w\-])/ig; rp1='$1$2$3<a'+tb+'href=http:'+'//circle.zoome.jp/$4/media/$6///?no_bt=1>$4$5$6</a>$7';
              for(;;){bx=bd.replace(rg0,rp0).replace(rg1,rp1);if(bx.length!=bd.length){bd=bx}else{break}}
              rg0=/(@VID@\?|@BG[MS]@\?|<\/a>\d*[\?\+])(\d*)(v[\w\-]{14,17})([^\w\-])/ig; rp0='$1$2<a'+tb+'href=http:'+'//www.veoh.com/browse/videos/watch/$3>$3</a>$4';
              rg1=/(@VID@\?|@BG[MS]@\?|<\/a>\d*[\?\+])([\w\-]{11})(\d*)([^\w\-])/ig; rp1='$1<a'+tb+'href=http:'+'//www.youtube.com/watch?v=$2>$2</a>$3$4';
              for(;;){bx=bd.replace(rg0,rp0).replace(rg1,rp1);if(bx.length!=bd.length){bd=bx}else{break}}
              rg0=/(@VID@\?|@BG[MS]@\?|<\/a>[\?\+])(\d*)(:?)(\d+)([:\/])v?(\d{5})(\d{14})([^\w\-])/ig; rp0='$1$2$3<a'+tb+'href=http:'+'//gyao.yahoo.co.jp/player/$4/v$6/v$6$7/>$4$5v$6$7</a>$8';
              rg1=/(@VID@\?|@BG[MS]@\?|<\/a>[\?\+])(\d*)(:?)(\d+)([:\/])v?(\d{5})([:\/])v?(\d{19})([^\w\-])/ig; rp1='$1$2$3<a'+tb+'href=http:'+'//gyao.yahoo.co.jp/player/$4/v$6/v$8/>$4$5v$6$7v$8</a>$9';
              rg2=/(@VID@\?|@BG[MS]@\?|<\/a>[\?\+])(\d*)(:?)(\d+)([:\/])v?(\d{5})([:\/])(\d{6})([^\w\-])/ig; rp2='$1$2$3<a'+tb+'href=http:'+'//gyao.yahoo.co.jp/player/$4/v$6/v$600000000$8/>$4$5v$6$7$8</a>$9';
              rg3=/(@VID@\?|@BG[MS]@\?|<\/a>[\?\+])(\d*)(:?)(\d+)([:\/])v?(\d{5})([:\/])(\d{7})([^\w\-])/ig; rp3='$1$2$3<a'+tb+'href=http:'+'//gyao.yahoo.co.jp/player/$4/v$6/v$60000000$8/>$4$5v$6$7$8</a>$9';
              rg4=/(@VID@\?|@BG[MS]@\?|<\/a>[\?\+])(\d*)(:?)(\d+)([:\/])v?(\d{5})([:\/])(\d{8})([^\w\-])/ig; rp4='$1$2$3<a'+tb+'href=http:'+'//gyao.yahoo.co.jp/player/$4/v$6/v$6000000$8/>$4$5v$6$7$8</a>$9';
              for(;;){bx=bd.replace(rg0,rp0).replace(rg1,rp1).replace(rg2,rp2).replace(rg3,rp3).replace(rg4,rp4);if(bx.length!=bd.length){bd=bx}else{break}}
              rg0=/(@VID@\?|@BG[MS]@\?|<\/a>[\?\+])(\d*)(:?)(v[\w\-]{14,17})([^\w\-])/ig; rp0='$1$2$3<a'+tb+'href=http:'+'//www.veoh.com/browse/videos/watch/$4>$4</a>$5';
              rg1=/(@VID@\?|@BG[MS]@\?|<\/a>[\?\+])(\d*)(:?)(a[\w\-]{12})([^\w\-])/ig; rp1='$1$2$3<a'+tb+'href=http:'+'//www.wassyoi.info/saba_list.html>$4</a>$5';
              rg2=/(@VID@\?|@BG[MS]@\?|<\/a>[\?\+])(\d*)(:?vi)(\d+)([^\w\-])/ig; rp2='$1$2$3<a'+tb+'href=http:'+'//www.vimeo.com/$4>$4</a>$5';
              rg3=/(@VID@\?|@BG[MS]@\?|<\/a>[\?\+])(\d*)(:?)([\w\-]{16})([^\w\-])/ig; rp3='$1$2$3<a'+tb+'href=http:'+'//www.youtube.com/view_play_list?p=$4>$4</a>$5';
              rg4=/(@VID@\?|@BG[MS]@\?|<\/a>[\?\+])(\d*)(:?)([\w\-]{11})([^\w\-])/ig; rp4='$1$2$3<a'+tb+'href=http:'+'//www.youtube.com/watch?v=$4>$4</a>$5';
              rg5=/(@VID@\?|@BG[MS]@\?|<\/a>[\?\+])(\d*)(:?)(\d{5,10})([^\w\-])/ig; rp5='$1$2$3<a'+tb+'href=http:'+'//vids.myspace.com/index.cfm?fuseaction=vids.individual&videoid=$4>$4</a>$5';
              rg6=/(@VID@\?|@BG[MS]@\?|<\/a>[\?\+])(\d*)(:?)(\w{4,8})([^\w\-])/ig; rp6='$1$2$3<a'+tb+'href=http:'+'//www.dailymotion.com/video/$4>$4</a>$5';
              for(;;){bx=bd.replace(rg0,rp0).replace(rg1,rp1).replace(rg2,rp2).replace(rg3,rp3).replace(rg4,rp4).replace(rg5,rp5).replace(rg6,rp6);if(bx.length!=bd.length){bd=bx}else{break}}
        } } }if((ur)&&(0==k)){bd=bd.replace(/<br ?\/?>/ig,'\n<br>').replace(/ ?\/ ?watch ?\? ?v ?= ?/g,'/watch?v=').split('&lt;/').join('\n&lt;/').split('&gt;</A>').join('</A>\n&gt;').split('&gt;</a>').join('</a>\n&gt;');
          bd=bd.replace(/(\/\/jbbs\.livedoor\.jp\/bbs\/link\.cgi\?url=[Hh]ttps?:\/\/|\/bbs\/link\.cgi\?url\=[Hh]ttps?:\/\/|\/\/ime\.nu\/|\/\/ime\.st\/|\/\/pin?kto?wer\.com\/|\/\/ameblo\.jp\/1\?\/\/)/g,'//');
          bd=bd.replace(/(\/\/jbbs\.livedoor\.jp\/bbs\/link\.cgi\?url=[Hh]ttps?:\/\/|\/bbs\/link\.cgi\?url\=[Hh]ttps?:\/\/|\/\/ime\.nu\/|\/\/ime\.st\/|\/\/pin?kto?wer\.com\/|\/\/ameblo\.jp\/1\?\/\/)/g,'//');
          bd=bd.replace(/(\/\/jbbs\.livedoor\.jp\/\/)/g,'//').replace(/(<[Aa] href="[Hh]?t?t?p?s?:?\/\/[^>]*>)([Hh]?ttp:\/\/[^<]*)(<\/[Aa]>\[\]=)/g,'$2[]=').replace(/(<[Aa] href="[Hh]?t?t?p?s?:?\/\/[^>]*>)(Http:\/\/[^<]*)(<\/[Aa]>)/g,'$2');
          if(lh.match(/:\/\/jbbs\.livedoor\.jp\//)){bd=bd.replace(/(\/\/)(w*\.?livetube\.cc|114\.\d+\.\d+\.\d+|118\.\d+\.\d+\.\d+|119\.\d+\.\d+\.\d+|122\.\d+\.\d+\.\d+|123\.\d+\.\d+\.\d+|124\.\d+\.\d+\.\d+)(\/)/g,'//'+livetubecc+'/')}
          if(us){bd=bd.replace(/([^=:"'>\(])(http:\/\/)/ig,'$1 $2').replace(/(>)(ttp:\/\/)/g,'$1 $2');
            bd=bd.replace(/([^=:"'>\(])(H)(ttps?:\/\/\w[^"<> \f\n\r\t\v]+)/g,'$1<a'+tb+'href=h$3>$2$3</a>');
            bd=bd.replace(/([^=:"'>\(])(htt|rtm|rts|rst)(ps?:\/\/[0-9a-zA-Z][\x23-\x3b!=\x3f-\x7e]+)/g,'$1<a'+tb+'href=htt$3>$2$3</a>');
            bd=bd.replace(/([^=:"'>\(Hhr])(tt|tm|ts|st)(ps?:\/\/[0-9a-zA-Z][\x23-\x3b!=\x3f-\x7e]+)/g,'$1<a'+tb+'href=htt$3>$2$3</a>');
            bd=bd.replace(/([^=:"'>\(])(f)(tps?:\/\/[0-9a-zA-Z][\x23-\x3b!=\x3f-\x7e]+)/g,'$1<a'+tb+'href=f$3>$2$3</a>');
            bd=bd.replace(/([^=:"'>\(])(mms)(:\/\/[0-9a-zA-Z][\x23-\x3b!=\x3f-\x7e]+)/g,'$1<a'+tb+'href=http$3>$2$3</a>');
            bd=bd.replace(/([^=:"'>\(m])(ms)(:\/\/[0-9a-zA-Z][\x23-\x3b!=\x3f-\x7e]+)/g,'$1<a'+tb+'href=http$3>$2$3</a>');
            bd=bd.replace(/([^=:"'>\(tsf])(t|m|s)(ps?:\/\/[0-9a-zA-Z][\x23-\x3b!=\x3f-\x7e]+)/g,'$1<a'+tb+'href=htt$3>$2$3</a>');
            bd=bd.replace(/([^=:"'>\(tms])(ps?:\/\/[0-9a-zA-Z][\x23-\x3b!=\x3f-\x7e]+)/g,'$1<a'+tb+'href=htt$2>$2</a>');
            bd=bd.replace(/([^=:"'>\(mp])s(:\/\/[0-9a-zA-Z][\x23-\x3b!=\x3f-\x7e]+)/g,'$1<a'+tb+'href=http$2>s$2</a>');
            bd=bd.replace(/([^=:"'>\(\w\?\/])(:\/\/[0-9a-zA-Z][\x23-\x3b!=\x3f-\x7e]+)/g,'$1<a'+tb+'href=http$2>$2</a>');
            bd=bd.replace(/([^=:"'>\(\w\?\/])(\/\/[0-9a-zA-Z][\x23-\x3b!=\x3f-\x7e]+)/g,'$1<a'+tb+'href=http:$2>$2</a>');
            bd=bd.replace(/(>)(h?)(t?t?p?)(s?:\/\/)/g,'$1Http$4').replace(/(<\/[Aa]>)/g,'$1\n');
            if(tv){bd=bd.replace(/(:\/\/)(jbbs\l|www\.f|www\.n|nico)([^\?]+\/\?)([a-z][a-z])(\d\d\d+)/ig,'://jbbs.livedoor.jp/travel/8772/?$4$5');
            bd=bd.replace(/(:\/\/\w*\.?nicovideo\.jp\/watch\/)(id|sm|nm)(\d\d\d+)(:?\d*)([\?&]?[\?&=:;\w\-\+\/\*\,\.]*)/ig,'://jbbs.livedoor.jp/travel/8772/?$2$3$4');
            bd=bd.replace(/(:\/\/jbbs\.livedoor\.jp\/\w+\/\d+\/\?)(id|sm|nm)(\d\d\d+)(:?\d*)(,?)/ig,'://jbbs.livedoor.jp/travel/8772/?$2$3$4');
            bd=bd.replace(/( href="|>)(h?t?t?p?:?)(\/\/gw\.tv\/tgc\/09AW\/model\/img\/btn_heart_on\.gif)/ig,'$1');
            bd=bd.replace(/( href="|>)(h?t?t?p?:?)(\/\/\w+\.?youtube\.com\/)(v\/)(.{11})([\?&]?[\?&=:;\w\-\+\/\*\,\.]*)/ig,'$1$2//www.youtube.com/watch?v=$5');
            bd=bd.replace(/(:\/\/\w*\.youtube\.com\/watch\?v=)(.{11})(,)/ig,'://www.youtube.com/watch?v=$2');
            bd=bd.replace(/(:\/\/m\.ameba\.jp\/)([\w\-]+)(\/image\-\d+\-\d+)(\/)(\??[\w\-&=]*)/ig,'://ameblo.jp/$2$3.html');
            if(!ab){if((!sf)||(ir)){bd=bd.replace(/(\/\/)(\w*\.?geocities\.jp\/[^\.< ]*)(\.)(jpeg|bmp|jpg|gif|png)/ig,'/*$2$3$4')}
              if((!sf)||(ir)){bd=bd.replace(/(\/\/)(stat\d*\.ameba\.jp\/|blog\-imgs\-\d+\.fc2\.com\/)/ig,'/*$2')}
              bd=bd.replace(/(h?t?t?p?:?)(\/\/)(stat\d*\.ameba\.jp\/[\w\-]+\/[\w\-]+\/img\/[^\.< ]*)(\.)(jpeg|bmp|jpg|gif|png)/ig,'$1//$3$4$5');
              bd=bd.replace(/(>)(h?t?t?p?s?:?)(\/\/)([^< ]*)(\.)(jpeg|bmp|jpg|gif|png)(\??[^<]*)(<\/a>)/ig,tb0+'ttp:$3$4$5$6$7'+tb0e+' src=$3$4$5$6$7></a>'+tb2);
              bd=bd.replace(/( href=)("?)(\/\/up\d*\.[a-z]+\.[a-z]+\/[a-z]+\/[a-z_]+)(0*)(\d+)(\.jpg)/ig,'$1$2//up.'+pa+'vote.net/1/?$3$4$5$6');
              bd=bd.replace(/( href=)(\/\/video)(\d)(\.\wc\d\.com)(\/up\/\w+\/\d+\/\d+\/\d+\/)(\w+)(\.jpg)(><font style=)/ig,'$1$2$4/en/a/content/$6$8');
              rp=tb1+'<a target=_blank href=//bc.geocities.yahoo.co.jp/se/not_found/1?//$4$5$6>ttp://$4$5$6</a>'+tb1e+' src=//bc.geocities.yahoo.co.jp/se/not_found/x?//$4$5$6></iframe>'+tb2;if(op){rp=rp.replace('/x?//','/1?//')}bd=bd.replace(/(>)(h?t?t?p?:?)(\/\*)(\w*\.?geocities\.jp\/[^\.< ]*)(\.)(jpeg|bmp|jpg|gif|png)(<\/a>)/ig,rp);
              rp=tb1+'<a target=_blank href=//ameblo.jp/1?//$4$5$6>ttp://$4$5$6</a>'+tb1e+' src=//ameblo.jp/x?//$4$5$6></iframe>'+tb2; bd=bd.replace(/(>)(h?t?t?p?:?)(\/\*)(stat\d*\.ameba\.jp\/[^\.< ]*)(\.)(jpeg|bmp|jpg|gif|png)(<\/a>)/ig,rp);
              rp=tb1+'<a target=_blank href=//fc2.com/1/?//$4$5$6>ttp://$4$5$6</a>'+tb1e+' src=//rss.fc2.com/?//$4$5$6></iframe>'+tb2; bd=bd.replace(/(>)(h?t?t?p?:?)(\/\*)(blog\-imgs\-[^\.< ]*)(\.)(jpeg|bmp|jpg|gif|png)(<\/a>)/ig,rp);
              rp=tb0+'ttp:$3$4$5$6$7'+tb0e+' src=//icon.nicovideo.jp/community/$4$5></a>'+tb2; bd=bd.replace(/(>)(h?t?t?p?:?)(\/\/ch\.nicovideo\.jp\/community\/)(co)(\d+)(:?)([\?&]?[\?&=:;\w\-\+\/\*\,\.]*)(<\/a>)/ig,rp);
              rp=tb0+'ttp:$3$4$5$6$7'+tb0e+' src=//tn-skr.smilevideo.jp/smile?i=$5></a>'+tb2; bd=bd.replace(/(>)(h?t?t?p?:?)(\/\/jbbs\.livedoor\.jp\/\w+\/\d+\/\?)([a-z][a-z])(\d\d\d+)(:?\d*)([\?&]?[\?&=:;\w\-\+\/\*\,\.]*)(<\/a>)/ig,rp);
              rp=tb0+'ttp:$3$4$5$6$7'+tb0e+' src=//up.shipweb.jp/mov/small/$5.jpg></a>'+tb2; bd=bd.replace(/(>)(h?t?t?p?:?)(\/\/himado\.in\/)(|\?id=)(\d+)(:?)([\?&]?[\?&=:;\w\-\+\/\*\,\.]*)(<\/a>)/ig,rp);
              rp=tb0+'ttp:$3/$4$5$6$7'+tb2e+' src=http:'+'//www.youtube.com/p/$5&hd='+((0==k)*hd)+'&hl=en&fs=1&iv_load_policy=3></embed>'+tb2; bd=bd.replace(/(>)(h?t?t?p?:?)(\/\/\w+\.?youtube\.com\/)\/*(watch\?v=.{11}&a?m?p?;?feature=PlayList&a?m?p?;?p=)(.{16})([\?&]?[\?&=:;\w\-\+\/\*\,\.]*)(<\/a>)/ig,rp);
              rp=tb0+'ttp:$3$4$5$6$7'+tb2e+' src=http:'+'//www.youtube.com/p/$5&hd='+((0==k)*hd)+'&hl=en&fs=1&iv_load_policy=3></embed>'+tb2; bd=bd.replace(/(>)(h?t?t?p?:?)(\/\/\w+\.?youtube\.com\/)\/*(p\/|view_play_list\?p=)(.{16})([\?&]?[%\?&=:;\w\-\+\/\*\,\.]*)(<\/a>)/ig,rp);
              rp=tb0+'ttp:$3$4$5$6$7'+tb2e+' src=http:'+'//www.youtube.com/v/$5&hd='+((0==k)*hd)+'&hl=en&fs=1&iv_load_policy=3></embed>'+tb2; bd=bd.replace(/(>)(h?t?t?p?:?)(\/\/\w+\.?youtube\.com\/)(v\/|watch\?v=)(.{11})([\?&]?[\?&=:;\w\-\+\/\*\,\.]*)(<\/a>)/ig,rp);
              rp=tb0+'ttp:$3$4$5$6$7'+tb2e+' src=http:'+'//www.youtube.com/p/$5&hd='+((0==k)*hd)+'&hl=en&fs=1&iv_load_policy=3></embed>'+tb2; bd=bd.replace(/(>)(h?t?t?p?:?)(\/\/\w+\.?youtube\.com\/)(user\/[\w\-]+\?feature=[\w\-]+#[a-z]\/[a-z]\/[a-z]?\/?|user\/[\w\-]+#[a-z]\/[a-z]\/[a-z]?\/?)(.{16})(\/?[\?&=:;\w\-\+\/\*\,\.]*)(<\/a>)/ig,rp);
              rp=tb0+'ttp:$3$4$5$6$7'+tb2e+' src=http:'+'//www.youtube.com/v/$5&hd='+((0==k)*hd)+'&hl=en&fs=1&iv_load_policy=3></embed>'+tb2; bd=bd.replace(/(>)(h?t?t?p?:?)(\/\/\w+\.?youtube\.com\/)(user\/[\w\-]+\?feature=[\w\-]+#[a-z]\/[a-z]\/[a-z]?\/?\d+\/|user\/[\w\-]+#[a-z]\/[a-z]\/[a-z]?\/?\d+\/)(.{11})(\/?[\?&=:;\w\-\+\/\*\,\.]*)(<\/a>)/ig,rp);
              rp=tb0+'ttp:$3$4$5$6$7'+tb2e.replace('height='+(th+ph),'height='+th)+' src=http:'+'$3/swf/$5&autoPlay=0></embed>'+tb2; bd=bd.replace(/(>)(h?t?t?p?:?)(\/\/www\.dailymotion\.com)(\/video\/|\/.*\/video\/)([0-9a-z]+)([_\?&]?[\?&=:;\w\-\+\/\*\,\.]*)(<\/a>)/ig,rp);
              rp=tb0.replace('$6','$6///?no_bt=1')+'ttp:$3$4$5$6$7$8'+tb2e.replace('height='+(th+ph),'height='+(hh+ph))+' src=http:'+'$3$4zpdia/p$6></embed>'+tb2; bd=bd.replace(/(>)(h?t?t?p?:?)(\/\/zoome\.jp\/)([\w\-]+\/)(diary)(\/\d+)(|\/*\?[\?&]?[\?&=:;\w\-\+\/\*\,\.]*)(<\/a>)/ig,rp);
              rp=tb0.replace('$6','$6///?no_bt=1')+'ttp:$3$4$5$6$7$8'+tb2e.replace('height='+(th+ph),'height='+(hh+ph))+' src=http:'+'$3$4zpmed/p$6></embed>'+tb2; bd=bd.replace(/(>)(h?t?t?p?:?)(\/\/circle\.zoome\.jp\/)([\w\-]+\/)(media)(\/\d+)(|\/*\?[\?&]?[\?&=:;\w\-\+\/\*\,\.]*)(<\/a>)/ig,rp);
              rp=tb0+'ttp:$3$4$5$6$7'+tb2e.replace('height='+(th+ph),'height='+th)+' src=http:'+'//vimeo.com/moogaloop.swf?clip_id=$5&server=vimeo.com&show_title=1&show_byline=1&show_portrait=0&color=&fullscreen=1&autoplay=0></embed>'+tb2; bd=bd.replace(/(>)(h?t?t?p?:?)(\/\/www\.vimeo\.com)(\/)(\d+)([_\?&]?[\?&=:;\w\-\+\/\*\,\.]*)(<\/a>)/ig,rp);
              bd=bd.replace(/(<\/a>|<br>|[^>\s ])([  ]*)(<a )([^>]*><\/a><table )/ig,'$1<br>$3$4').split('ttp:/*').join('ttp://');
              bd=bd.replace(/(<br><br><a )/ig,'<br><a ').replace(/(<\/table> ?\n<br>)/ig,'<table>\n').replace(/(<a[^>]+>)(<\/a>)(<a)/ig,'$3');
              bd=bd.replace(/(>)(h?)(t?t?p?)(s?:\/\/)/g,'$1Http$4').replace(/(<\/[Aa]>)/g,'$1\n').replace(/(\/\/\w*\.?.youtube\.com\/)/g,'//www.youtube.com/');
              if(sf){s=1;x='';for(y=0;bd.length>y;y++){c=bd[y];if('>'==c){s=1}else if('<'==c){s=0}else if(0<='.-+*/=%?|&#'.indexOf(c)){if(s){x+='<wbr>'}}x+=c}bd=x}
        } } } }db[j].innerHTML=bd;
} } } }if(navigator.userAgent.match(/(Safari|Firefox|Opera)/)){LoopPlaySW=OFF;TVextendSW=ON;BGMvideoSW=ON;ViewWidth=600;ViewPic=Math.floor(ViewWidth/2);MultiplexHeight=2.0;js='//userscripts.org/scripts/source/45578.user.js';
function SearchBOX(){fo=style('.gbh{border:none}h1{line-height:300%}');
  fo+='<table style=z-index:9999; cellspacing=0 cellpadding=2 border=0 width=100% bgcolor=white height=40 bordercolor=white style=background:white;><tr>';
  fo+='<td style=background:white; width=5% align=center><a onFocus=this.blur() style=font-size:8pt; target=_blank href=//tinyurl.com/><font color=blue>Tiny</font></a></td>';
  fo+='<td style=background:white; align=right><a target=_blank href=//search.goo.ne.jp/web.jsp?MT=YouTube&IE=UTF-8 style=font-weight:600;font-size:10pt;color:blue;>gooNTT</td><td style=background:white;><form style=display:inline; name=form method=get target=_blank action=//search.goo.ne.jp/web.jsp accept-charset=utf-8><input name=MT type=text style=width:80px;><input name=IE value=UTF-8 type=hidden><input type=reset value=" C "><input type=submit value=Search></form></td>';
  fo+='<td style=background:white; align=right><a target=_blank href=//search.yahoo.co.jp/search?p=YouTube&n=100&ei=UTF-8 style=font-weight:600;font-size:10pt;color:blue;>Yahoo</a></td><td style=background:white;><form style=display:inline; name=form method=get target=_blank action=http://search.yahoo.co.jp/search accept-charset=utf-8><input name=p type=text style=width:80px;><input name=n value=100 type=hidden><input name=site value=0 type=hidden><input type=reset value=" C "></b><input type=submit value=Search></form></td>';
  fo+='<td style=background:white; align=right><a target=_blank href=//bach.istc.kobe-u.ac.jp/cgi-bin/metcha.cgi?q=YouTube&speed=s&max=0&site=0&comment=1&tw=_blank&bm=1 style=font-weight:600;font-size:10pt;color:blue;>metcha</a></td><td style=background:white;><form style=display:inline; name=form method=get target=_blank action=//bach.istc.kobe-u.ac.jp/cgi-bin/metcha.cgi accept-charset=euc-jp><input name=q type=text style=width:80px;><input name=speed value=s type=hidden><input name=max value=0 type=hidden><input name=site value=0 type=hidden><input name=comment value=1 type=hidden><input name=tw value=_blank type=hidden><input name=bm value=1 type=hidden><input type=reset value=" C "></b><input type=submit value=Search></form></td>'
  fo+='<td style=background:white; width=5% align=center><a onFocus=this.blur() href=//userscripts.org/scripts/source/45578.user.js>'+ifaddstr(ff,'<font color=blue style=font-size:8pt;>+BGM</font>')+'</a>'+ifaddstr(!ff,'<font color=dimgray style=font-size:8pt;>+BGM</font>')+'</td>'+'</tr><tr>';
  fo+='<td style=background:white; width=5% align=center><a onFocus=this.blur() style=font-size:8pt; target=_blank href=//tinypic.com/><font color=blue>Pic</font></a></td>';
  fo+='<td style=background:white; align=right><a target=_blank href=//www.google.co.jp/search?hl=ja&num=100&sitesearch=jbbs.livedoor.jp&q=YouTube style=font-weight:600;font-size:10pt;color:blue;>sitejbbs</a></td><td style=background:white;><form style=display:inline; name=form method=get target=_blank action=//www.google.co.jp/search accept-charset=utf-8><input name=hl value=ja type=hidden><input name=num value=100 type=hidden><input type=hidden name=sitesearch value="jbbs.livedoor.jp"><input name=q value="" type=text style=width:80px;><input type=reset value=" C "><input type=submit value=Search></form></td>';
  fo+='<td style=background:white; align=right><a target=_blank href=//www.google.co.jp/search?q=YouTube&num=100&ie=utf-8 style=font-weight:600;font-size:10pt;color:blue;>Google</a></td><td style=background:white;><form style=display:inline; name=form method=get target=_blank action=//www.google.co.jp/search accept-charset=utf-8><input name=q type=text style=width:80px;><input name=num value=100 type=hidden><input name=ie value=utf-8 type=hidden><input type=reset value=" C "><input type=submit value=Search></form></td>';
  fo+='<td style=background:white; align=right><a target=_blank href=//find.2ch.net/?STR=YouTube&COUNT=50&TYPE=TITLE&BBS=ALL style=font-weight:600;font-size:10pt;color:blue;>find2ch</a></td><td style=background:white;><form style=display:inline; name=form method=get target=_blank action=//find.2ch.net/ accept-charset=euc-jp><input name=STR type=text style=width:80px;><input name=COUNT value=50 type=hidden><input type=reset value=" C "><input type=submit value=Search></form></td>';
  fo+='<td style=background:white; width=5% align=center><a onFocus=this.blur() style=font-size:8pt; target=_blank href='+Translate+'><font color=blue>Trans</font></a></td>';
  fo+='</tr></table>'+'<table cellspacing=0 cellpadding=0 border=0 width=100%><tr><td align=center><font color=orange style=position:relative;bottom:0px;font-size:9pt;>'+navigator.userAgent+'</font></td></tr></table>';return(fo)}
function GyaoBGM(vid,sw,ts,ph,th){spaceID=1000000000;vid=vid.replace(/(\d+)([:\/])(v\d+)([:\/])(v\d+)/ig,'$1:$3:$5');listID=0;repeat=0;enableIM=0;
  em ='\n\n\n<object style=z-index:9999;display:block; id="testplayer" data="data:application/x-silverlight-2," type="application/x-silverlight-2" height='+(sw*366)+' width='+(sw*ts)+'>';
  em+='\n<param name="source" value="http:'+'//i.yimg.jp/images/gyao/sl/PlayerGyaO.xap?v=5"><param name="onerror" value="onSilverlightError">';
  em+='\n<param name="background" value="#00FFFFFF"><param name="minRuntimeVersion" value="2.0.31005.0"><param name="autoUpgrade" value="true">';
  em+='\n<param name="enableHtmlAccess" value="true"><param name="AllowHtmlPopupwindow" value="true">';
  em+='\n<param name="Windowless" value="true"><param name="onLoad" value="pluginLoaded">';
  em+='\n<param name="initParams" value="spaceID='+spaceID+', vid='+vid+', listID='+listID+', repeat='+repeat+', enableIM='+enableIM+', size=, ts=1266601876">';
  em+='\n<a href="http:'+'//go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;">';
  em+='<img src="http:'+'//go.microsoft.com/fwlink/?LinkId=108181" alt="" style="border-style: none;"></a></object>\n\n';return(em)}
function ifaddstr(_sw_,_str_){if(_sw_){return(_str_)}return('')} function ifaddsplit(_id_,_str_){if(0<=_id_){_str_=_str_.split(',');return(_str_[_id_])}return('')} function style(_str_){return('<style>'+_str_+'</style>')} function CSS(_str_){return('<style>'+_str_+'</style>')}
window.addEventListener('load',function(e){AutoBGM('rimotv.web.fc2.com',KeyWords,HDselectVID,BGMvideoSW,LoopPlaySW,TVextendSW,ViewWidth,ViewPic,MultiplexHeight,HoldPicSize,PlayerHeight,VideoAspect,FlashCheck,Translate,WallPaperBodyCSS1,WallPaperBodyCSS2)},false);}})();

//}