open2chExtender / open2chAdBlock

// ==UserScript==
// @license MIT
// @author  open2chExtender
// @name    open2chAdBlock
// @version               2017/12/08
// @description Version 2017/12/08
// @include http://*open2ch.net/*
// @include http://*.2ch.sc/*
// @include htt*://*.5ch.net/*
// @include htt*://*bbspink.com/*
// @include http://*.vip2ch.com/*
// @include http://jbbs.shitaraba.net/*
// @include http://find.5ch.net/search?q=*
// @include http://find.2ch.sc/index.php?*
// @include http://find.2ch.sc/?STR=*
// @exclude http://*/threadlist.html
// @exclude htt*://open2ch.net/dev/*
// @exclude http://open2ch.net/
// @exclude http://open2ch.net
// @exclude http://premium.5ch.net/*
// @exclude htt*://www.5ch.net/
// @exclude htt*://www.5ch.net
// @exclude http://www.2ch.sc/
// @exclude http://www.2ch.sc
// @exclude http://2ch.sc/
// @exclude http://2ch.sc
// @exclude http://find.open2ch.net/*
// @exclude http://find.open2ch.net
// @exclude htt*://find.5ch.net/*
// @exclude htt*://find.5ch.net
// @exclude http://find.2ch.sc/index.php*
// @exclude http://find.2ch.sc/*
// @exclude http://find.2ch.sc
// @exclude http://menu.5ch.net/bbsmenu.html?thread=*
// @run-at document-end
// @grant   none
// ==/UserScript==

(function(){if((0)&&(document.referrer.split('#')[0]!=location.href.split('#')[0])&&(location.href.match(/(\/subback\.html\?)/))){location.reload();}if(d=document.getElementsByTagName('head')){d[0].innerHTML+='<style>a:link,a:hover,a:active,a:focus,a:visited{text-decoration:none !important;}</style>'}if(location.href.match(/^(https:\/\/[\w\-]+\.5ch\.net\/[\w\-]+\/#list)/)){location.replace(location.href.replace(/^(https:)/,'http:'));eval('*');}setTimeout(";window.stop();",300000);
if(location.href.match(/^(http:\/\/[\w\-]+\.)(5ch\.net|bbspink\.com)(\/test\/\#list)/)){eval('*');}else{if(document.title.match(/(5ch\.netの設定メニュー|5ch\.netの説明\/使い方|スマホのブラウザで快適2ちゃんねる|@2ちゃんねるのスレッド一覧|のスレッド\s*\|)/)){eval('*');}if(location.href.match(/(\/test\/read\.cgi\/)/)){setTimeout(";location.replace(location.href.split('#')[0]+'#write');",3000);};if(!document.cookie.match(/(READJS="off")/)){expire=new Date();expire.setTime(expire.getTime()+1000*3600*24*366);domain=location.href.split('/')[2];domain=domain.substr(domain.indexOf('.'));document.cookie='READJS="off"; domain='+domain+'; path=/;expires='+expire.toUTCString();location.reload();eval('*');}if(0){setTimeout(";if(0<location.href.indexOf('/read.cgi/')){setInterval(\";scrollBy(0, 1);\",66);};",30000);}
if((0>location.href.indexOf('/subback.htm'))&&(''!=document.referrer)&&(document.referrer!=location.href)&&(location.href.match(/^(http:\/\/[\w\-]+\.?5ch\.net\/[\w\-]+\/)(index\.html?|)$/))){location.replace(location.href);eval('*');}else{UserBlockText=/((^$))/;UserBlockImage=/((^$))/;UserBlockStyle=(((',')));if((location.href.match(/:\/\/open2ch\.net\/[\w\-]+\/(index\.html?|)/))&&(!location.href.match(/\/(subback\.html|pc_menu\.html)/))){window.open(location.href.replace(/(:\/\/open2ch\.net\/)([\w\-]+)(\/)(index\.html?|)/,'://uni.open2ch.net/$2/').split('?')[0].split('#')[0],'_self');eval('*');}else if((location.href.match(/:\/\/\w*\.?2ch\.sc\//))&&(!location.href.match(/:\/\/uni\.2ch\.sc\//))&&((location.href.match(/(\?2chnet$)/))||(document.referrer.match(/(\?2chnet$)/)))){;}else{
AUTO=-1;ON=1;OFF=0;SC=0;WIDTH=300;MULTI=1;open2chSW=location.href.match(/(open2ch\.net)/);if(location.href.match(/^(https?:\/\/\w+\.2ch\.sc\/)/)){SC=1}if((ON)&&(navigator.userAgent.match(/(Lunascape|Firefox\/24\.)/))){document.title=' '+document.title.replace(/(^[  ]*|[  ]*$)/img,'').replace(/([  ][  ]+)/img,' ')+' ';}if((d=document.getElementsByTagName('head'))){p=10;function ifaddstr(sw,str){if(sw){return(str)}return('')};function ifelsestr(sw,str1,str2){if(sw){return(str1)}return(str2)};hh='';if(0<location.href.indexOf('bbspink.com/')){hh='iframe{width:0px !important;height:70px !important;}'}else if(0<location.href.indexOf('5ch.net/')){hh='iframe{width:0px !important;height:0px !important;}'};;;
PresetMasterBlockText=/(\/\/hissi\.org\/)/mg;PresetNoBlockText=/(cafemix.jp|おまけ|オマケ)/mg;PresetBlockText=/(\/\/goo\.gl\/\w+[ \s\<]|[\(\)\{\}\[\]\-\_\.\,\:\;]{20,}|wwwwwwww|WWWWWWWW|ニニニニニニ|三三三三三三|ミミミミミミ|!!!!|\;\;\;\;\;\;|\:\:\:\:\:\:|\i\i\i\i\i\i|\!\!\!\!\!\!|\ー\-\、\_\.|/\(。。\)\|\(__人__\)|ー◎-◎-|NG\s*ID)/mg;PresetBlockText2=/(の営業時間内に|病患者|発作時間|荒らし報告|しますた|死んだ|童貞|発狂するのは|空き家|もう書くな|バカにはできないコピペ|本が核を持|専ブラ|コピペ荒らし|クソレス|自演統計学|クソ自演|バカ瀬戸|グロい借|モラルを説いて|人間のクズ|隔離スレ|お前の日記帳|荒らすん|おまえが馬鹿|いい加減黙|糞ガキ|便器[猿女]|すっぞコラ|バカのスレ|能脳能脳能|キチガイ|かw|スレはクローズ|コピペの勢い|独居老|日野さん|ヒノテル|パワハラ加害|バカのコピペ|ば~~~かw|おじちゃん|ガックシ!!!|褌!!!|マラ!!!|おせ~ぞ!|アフィカス|~ホワ~|まだかまだか|この荒らし|スレタイから消|・冷やし中華はじ|糞音tube|殺されてえのか|陰唇|自殺|[死師紙市氏士]ね|あぼぼ?ーん|キンマンコ|単発質問スレ|基地外|糞スレ|単発スレ|焼き殺|氏ねや|詐欺師\s*犯罪者)/mg;
PresetBlockImage=/(ftp:\/\/|goo.gl\/JDmy3b#.jpg|\/tX8aVEm\.gif|media\/CpFjMz0UEAAurD-.jpg|\/AAAAAAAAA\w\w\/|\+law\+image\.jpg|www.bizocean.jp\/doc\/data\/product_thumb\/|\/o0640048013093527892\.jpg|imgur.com\/nqT3xBN.png|imgur.com\/jSeNmCw.png|new\-fourteen\/vs\.png|imgur.com\/513G4E6.|www.kantama.com\/adres\/distortion_spD\.gif|imgur.com\/vZeIuO3\.|imgur.com\/qS3vk1l\.|imgur.com\/RsFSDTL\.|imgur.com\/KmpCiBe|imgur.com\/nwKJZ1Z.|imgur.com\/nXAmd.|imgur.com\/GkAR1Mk.)/mg;PresetBlockStyle='a:link,a:hover,a:active,a:focus,a:visited{text-decoration:none !important;}div.form-group{width:50% !important;}input,textarea{background:#FFF !important;border:1px solid gray !important;}input[type=button],input[type=reset],input[type=submit],input[type="button"],input[type="reset"],input[type="submit"]{background:#DDD !important;border:1px solid gray !important;}#k_main > div.guideline_head > form > div.form-group{width:40%;display:inline-block !important;}input{height:24px !important;}textarea,input{margin:1px 0px 1px 0px !important;padding:0px !important;-moz-border-radius:5px !important;-webkit-border-radius:5px !important;border-radius:5px !important;}div{position:static !important;}#js--banners--thread,div.footer.push,div.adv-left,div.adv-right,#myNavbar,.navbar-header,.thread_list_scroll,.banner_area_468{display:none !important;}.btn{padding:3px !important;}.col-md-4{width:16% !important;}.col-md-8{margin-bottom:20px !important;width:84% !important;}#sidemenu .sidemenu_banner{width:100% !important;height:10px !important;}img[width="12"][height="12"]{display:none !important;}.container_body,.container{max-width:100% !important;width:100% !important;}.post{display:block !important;}#k_main{margin:0em !important;}#k_main > div:nth-child(5) > div{display:none !important;}textarea{background:white !important;}input[type="button"],input[type="reset"],input[type="submit"],.btn{background:#ddd !important; color:black !important; font-size:8pt !important; font-family:MeiryoKe_PGothic,"Helvetica Neue",Arial,Helvetica,"Lucida Grande","Hiragino Kaku Gothic ProN","ヒラギノ角ゴ ProN W3",Meiryo,メイリオ,"Meiryo UI",sans-serif !important}img{border-style:solid !important;border-color: #000 !important;border-width:0px !important;}*:not(a):not(b):not(p):not(font):not(span){color:black}a:link{color:#0000ff !important;}a:visited{color:#800080 !important;}a:active{color:#800080 !important;}a:hover{color:#ff8000 !important;}div#header,.headlist,span{background:#bbcced !important;background-color:#bbcced !important;font-size:9pt !important}iframe#google_ads_frame1,div[style="width:95%;border:1px solid black;margin:0 auto;background-color:#ccffcc"],div[style="border:1pt solid black;width:410px;position:fixed;top:8;right:5;background:#fff;z-index:10;"],div[style="width:300px;height:250px;padding:10px;float:left;"],.table_info{display:none !important;}klog_view{background:#888 !important;}center > p,center > table[cellspacing="5"],div.ad--right,div.js--ad--right--top,div.js--ad--right--bottom,div.js--ad--bottom,body > div.box,body > div.lbox,iframe#google_esf{display:none !important;} a:hover,a:focus{color:deeppink !important;}div > small > a:link{color:blue !important;}div > small > a:focus,div > small > a:hover{color:deeppink !important;}dd.net{display:block !important;}div.box,iframe.yplayer,hr,.js--ad--top,.ad--left,.ad--right,.js--ad--bottom,body > div > span,dl > div > span{color:black !important;}div[style="margin-top:10px;margin-bottom:10px;width:100%;text-align:center;"],.youtube{}form,input,a,b,*{font-family:MeiryoKe_PGothic,"Helvetica Neue",Arial,Helvetica,"Lucida Grande","Hiragino Kaku Gothic ProN","ヒラギノ角ゴ ProN W3",Meiryo,メイリオ,"Meiryo UI",sans-serif !important}div[class="header-menu"],div[align="center"]{margin-top:4em !important;margin-left:2px !important}span{float:none !important;}div[class="jbbsCustomHeader"],div[style="margin-top:1em;"]{margin-top:6em !important;margin-left:2px !important}:not(.subject):not(.glyphicon):not(input):not(button):not(textarea){background:none !important;background-color:#bbcced !important;font-size:9pt !important;}:not(input):not(font):not(a):not(b):not(dt):not(dd){font-size:9pt !important}input{height:21px}dt > span > b,ul > li > a,ul > li,td.r_sec_body,p.showbutton,span[rel="dct:type"],#content th,#content td,li,dt,dd{font-size:9pt !important;line-height:15px !important}.res p{max-height:4320px !important;}small > a{font-size:9pt !important}font[size="2"] > a{font-size:9pt !important}input[size="40"]{width:160px !important}#search-main > .thread-area{margin-bottom:2px !important}'+(hh)+'#post-form > * > *{font-size:9pt !important}#search-main > .thread-area *{margin:0px !important;padding:0px !important;line-height:15px !important;font-size:9pt !important} div > span > a{font-size:9.6pt !important;line-hight:30px !important;}#banner,#bannerLeft,#bannerRight,.ad--bottom,.ad--bottom--block{display:inline !important;width:0px !important;height:0px !important;}div.message{margin-left:30px !important;}section.thread,div.thread,div.thread_box,div.post,div.message,dl.thread,dd.thread_in{white-space:nowrap !important;width:100% !important;}div.number{display:inline !important;}body > div > span[style="float:left;"]{margin-top:20px !important;display:block;}div[style="background-color:yellow;margin:1px;padding:1px;"]{margin-top:30px !important;display:block;}#thread > div[style="float:left;font-size:12px;"],#thread > div[style="float:right;font-size:12px;"],#thread > span[style="font-size:10px;"],div[style="float: right; font-size: 75%"],iframe[height="130"],iframe[height="250"],iframe[width="728"],iframe[width="800"],td[width="18%"],#map,img[width="160"],img[height="60"],img[width="468"],iframe[width="468"],img[width="728"],embed[width="728"],iframe[width="728"],img[height="250"],embed[height="250"],iframe[height="250"],img["padding: 0px; margin: 0px;"],img[style="padding: 0px; margin: 0px;"],#my-glider,#dvDigitalice960,.ad_area,#google_ads_frame1,#google_image_div,#google_ads_frame3,div[style="width: 728px; position: relative; top: 0px; left: 0px; margin: 0px; padding: 0px; display: inline-block; "],#aw0,div[style="width: 728px; position: relative; top: 0px; left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; display: inline-block;"],div[style="margin-top:1em;"] > span[style="float:right;"],div#jlisting,div.search_box > strong,div.search_box > a,table[cellspacing="4"][align="right"][width="25%"],div[align="right"] > iframe[height="45" ],a[href="http://ofuda.cc/"],body > iframe[height="15" ],center > table[cellspacing="5"],table[cellspacing=5],td[width="42%"],div#section1,div#section2,div#section3,#jbbsheader,#headerContainer,#imobile_adspotframe1,div.box,#tuhoButton,#TT_frame,dd > small,#headerContainer,#jlisting_ad,hr';
if(location.href.match(/(:\/\/[\w\-]+\.5ch\.net\/[\w\-]+\/)(index\.html?|)$/)){if(d=document.getElementsByTagName('div')){for(i=0;d.length>i;i++){if(0<d[i].innerHTML.indexOf('X95%')){d[i].innerHTML='<br><div style=display:none>'+d[i].innerHTML+'</div>';break;}}}}if(d=document.getElementsByTagName('td')){for(i=0;d.length>i;i++){if((0<d[i].innerHTML.indexOf('id="imobile_adspotdiv1"'))||(0<d[i].innerHTML.indexOf('id="kauli_yad_1"'))||(0<d[i].innerHTML.indexOf('width="42%"'))){d[i].innerHTML='<br><div style="">'+d[i].innerHTML+'</div>';}else if((0<d[i].innerHTML.indexOf('href="http://addsky.tv/2ch/"'))){d[i].innerHTML='<br><div style=display:none>'+d[i].innerHTML+'</div>';break;}}};;;if(0!=location.href.indexOf('find.moritapo.jp')){if(d=document.getElementsByTagName('span')){for(i=0;d.length>i;i++){if((0<d[i].innerHTML.indexOf('[PR]'))){d[i].innerHTML='';break;}}}};SearchBOX='<br>'+
'<table id=open2chAdBlock style=z-index:3;position:absolute;top:0px; cellspacing=0 cellpadding=2 border=0 width=100% bgcolor=white height=40 bordercolor=white style=background:white;><tr>'+'<td width=5% align=center> <a onfocus=this.blur(); style=font-size:8pt; target=_blank href=http://translate.google.com/><font color=blue>翻訳 Trans</font></a></td>'+
'<td align=right><a target="_blank" href="" onclick=window.open(\'http://www.google.com/search?hl=ja&num=100&sitesearch=open2ch.net&q=YouTube\',\'_blank\'); style=font-weight:700;font-size:10pt;color:blue;>open2ch</a></td><td><form style=display:inline; name=form method=get target=_blank action=http://www.google.com/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="open2ch.net"><input name=q value="" type=text style=width:65px;><input type=reset value=" C "><input type=submit value=Search></form></td>'+
'<td align=right><a target="_blank" href="" onclick=window.open(\'http://www.google.com/search?hl=ja&num=100&sitesearch=2ch.sc&q=YouTube\',\'_blank\'); style=font-weight:700;font-size:10pt;color:blue;>2chsc</a></td><td><form style=display:inline; name=form method=get target=_blank action=http://www.google.com/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="2ch.sc"><input name=q value="" type=text style=width:65px;><input type=reset value=" C "><input type=submit value=Search></form></td>'+
'<td align=right><a target="_blank" href="" onclick=window.open(\'http://www.google.com/search?hl=ja&num=100&sitesearch=5ch.net&q=YouTube\',\'_blank\'); style=font-weight:700;font-size:10pt;color:blue;>5chnet</a></td><td><form style=display:inline; name=form method=get target=_blank action=http://www.google.com/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="5ch.net"><input name=q value="" type=text style=width:65px;><input type=reset value=" C "><input type=submit value=Search></form></td>'+
'<td width=5% align=center><font color=blue style=font-size:8pt;><a target=_blank href=http://imgur.com/><font color=blue>Imgur 画像</font></a>  </td>'+'</tr><tr>'+'<td width=5% align=center> <a onfocus=this.blur(); style=font-size:8pt; target=_blank href=http://goo.gl/><font color=blue>短縮 goo.gl</font></a></td>'+
'<td align=right><a target="_blank" href="" onclick=window.open(\'http://www.google.com/search?num=100&ie=utf-8&q=YouTube\',\'_blank\'); style=font-weight:700;font-size:10pt;color:blue;>Google</a></td><td><form style=display:inline; name=form method=get target=_blank action=http://www.google.com/search accept-charset=utf-8><input name=q type=text style=width:65px;><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>'+
'<td align=right><a target="_blank" href="" onclick=window.open(\'http://find.2ch.sc/?STR=YouTube&TYPE=TITLE&BBS=ALL&ENCODING=UTF-8&SCEND=D&SORT=MODIFIED\',\'_blank\'); style=font-weight:700;font-size:10pt;color:blue;>find2sc</a></td><td><form style=display:inline; name=form method=get target=_blank action=http://find.2ch.sc/ accept-charset=utf-8><input name=STR type=text style=width:65px; value=""><input name=TYPE type=hidden value=TITLE><input name=BBS type=hidden value=ALL><input name=ENCODING type=hidden value=UTF-8><input name=SCEND type=hidden value=D><input name=SORT type=hidden value=MODIFIED><input type=reset value=" C "><input type=submit value=Search></form></td>'+
'<td align=right><a target="_blank" href="" onclick=window.open(\'http://find.5ch.net/search?q=YouTube\',\'_blank\'); style=font-weight:700;font-size:10pt;color:blue;>find5net</a></td><td><form style=display:inline; name=form method=get target=_blank action=http://find.5ch.net/search accept-charset=utf-8><input name=q type=text style=width:65px; value=""><input type=reset value=" C "><input type=submit value=Search></form></td>'+
'<td width=5% align=center><a onFocus=this.blur() style=font-size:8pt; target=_blank onclick=window.scroll(0,99999999);return(false); href="javascript:;"><font color=blue>Write 投稿</font></a>  </td></tr>';if(!location.href.match(/(\.X2ch\.sc\/)/)){SearchBOX+='<tr><td colspan=8 align=center nowrap><font color=orange style=position:relative;bottom:0px;font-size:9pt;>'+(navigator.userAgent).replace(/(\)|\ )/img,'$1<wbr>')+' <wbr>Width/<span id=cWidthX>'+document.body.clientWidth+'</span>px/'+screen.width+'px'+'<span style=display:none;></span></font></td></tr>';}
if(0){SearchBOX+='</table>'+'<a name="XwriteX" href=""><span></span></a><br><table style=display:none;margin-left:12px;><tr><td><br><font color=red>'+document.title.replace(/(\[無断転載禁止\]|\[転載禁止\]|©bbspink\.com|©5ch\.net|\(c\)5ch\.net)/img,'')+'</font><br><a target=_top onclick=window.scroll(0,0);return(false); href='+(lh=(location.href.split('#')[0].replace(/(\/[\w\-]+\/\d+)(.*)$/,'$1/l50')))+'>'+(lh)+'</a></td></tr></table><br>'+((SearchBOX+'</table><br><br>').replace('<table ','').replace('style=','style=display:none;')).replace('position:absolute;top:0px;','').replace('id=cWidthX','id=cWidthX2').replace('Write 投稿','2x 画像拡大').replace('onclick=window.scroll(0,99999999);return(false); href="javascript:;"','href=http://waifu2x.udp.jp/');setInterval("if(d=document.getElementById('cWidthX2')){d.innerHTML=''+document.body.clientWidth;}else{;}",300);}
;setInterval("if(d=document.getElementById('cWidthX')){d.innerHTML=''+document.body.clientWidth;}else{;}",300);l=location.href;if(!l.match(/(:\/\/jbbs\.livedoor\.jp\/\w+\/read\.cgi\/|:\/\/jbbs\.livedoor\.jp\/\w+\/\d+\/?$|:\/\/next5ch\.net\/?\w*\/?\d*|:\/\/\w+\.5ch\.net\/\w+\/read\.cgi\/|:\/\/\w+\.5ch\.net\/\w+\/?(index\.html?|)#?(\d*|\list)$|:\/\/\w+\.2ch\.sc\/\w+\/read\.cgi\/|:\/\/\w+\.2ch\.sc\/\w+\/?(index\.html?|)#?(\d*|\list)$|:\/\/\w+\.open2ch\.net\/\w+\/read\.cgi\/|:\/\/\w*\.?open2ch\.net\/\w+\/?(index\.html?|)#?(\d*|\list)$|:\/\/\w+\.vip2ch\.com\/\w+\/read\.cgi\/|:\/\/\w*\.?vip2ch\.com\/\w+\/?(index\.html?|)#?(\d*|\list)$|:\/\/\w+\.jikkyo\.org\/\w+\/read\.cgi\/|:\/\/\w*\.?jikkyo\.org\/\w+\/?(index\.html?|)#?(\d*|\list)$|:\/\/\w+\.bbspink\.com\/\w+\/read\.cgi\/|:\/\/\w+\.bbspink\.com\/\w+\/?(index\.html?|)#?(\d*|\list)$)/)){SearchBOX=''}
if(location.href.match(/(\/subback\.html)/)){if(d=document.getElementsByTagName('a')){for(i=0;d.length>i;i++){d[i].href=d[i].href.replace(/(\.2ch\.net\/)/,'.5ch.net/');d[i].innerHTML=d[i].innerHTML.replace(/(\[無断転載禁止\]|\[転載禁止\]|©bbspink\.com|©5ch\.net|\(c\)5ch\.net)/img,'').replace(/([\/\、\・\・])([\/\、\・\・]*)/img,'$1').replace(/([■]+)/img,'■').replace(/([━]+)/img,'━').replace(/([\ー]+)/img,'ー').replace(/(wwww+)/img,'www').replace(/(。+)/img,'。').replace(/([ \s]+)/img,' ');if(d[i].innerHTML.match(/(_____|戦場実況、|室櫻子|www+|netの人気スレ|神の怒り|自殺|刑事第|浪人[をは]|[\(\(]ヨ[\)\)]|繧薙|キチガイ|[\死\氏]ね|糞スレ|キンマンコ|クズクズクズ|<◎>|<・>|======|======|ニニニニニニ|三三三三三三|WWWWWW|WWWWWW|テテテテテテ|ウウウウウウ|髷髷|馬鹿|下 ?遼 ?太|川和久|ㅤ)/)){d[i].innerHTML=d[i].innerHTML.split(':')[0]+':';};}}}
if(location.href.match(/(\.2ch\.sc\/)/)){if(location.href.match(/(\/subback\.html)/)){PresetBlockStyleBody='body{margin-top:10px !important;}'}else{PresetBlockStyleBody='body{margin-top:87px !important;}'}}else{if(location.href.match(/(\.?open2ch\.net\/test\/read\.cgi)/)){PresetBlockStyleBody='body{margin-top:88px !important;}'}else{if(location.href.match(/(next5ch\.net\/)/)){PresetBlockStyleBody='body{margin-top:100px !important;}span#kauli_yad_js_1{height:0px !important;}'}else if(0<location.href.indexOf('subback.htm')){PresetBlockStyleBody='body{margin-top:10px !important;}'}else{PresetBlockStyleBody='body{margin-top:88px !important;}'}}}
if(location.href.match(/(http:\/\/open2ch\.net\/menu\/pc_menu\.html|http:\/\/menu\.2ch\.sc\/bbsmenu\.html|http:\/\/menu\.5ch\.net\/bbsmenu\.html)/)){PresetBlockStyleBody+='body{margin-top:0px !important;}form,br{display:none !important;}'};SearchBOX=SearchBOX.split('style=').join('style=white-space:nowrap;')+'<style>'+PresetBlockStyleBody+PresetBlockStyle+'{display:none !important}</style><style>'+UserBlockStyle+'{display:none !important}</style><style>.nonOFF{display:none;color:gray !important;font-size:9pt !important}.nonON{display:inline;color:gray !important;font-size:9pt !important}.nophotourl{;}.photourl{position:absolute !important;top:-1280px !important;font-size:0px !important;}video.photo,img.photo{display:inline-block;vertical-align:top;margin-top:3px;width:'+(WIDTH)+'px;max-width:'+(WIDTH)+'px}video.photo:hover,img.photo:hover{position:relative !important;left:1px;top:1px;width:'+Math.floor(WIDTH*MULTI)+'px;max-width:'+Math.floor(WIDTH*MULTI)+'px} img.photoY{display:none;} img.photoE{display:inline-block;} .ico2ch{display:inline-block;width:;} div[id^="popup"] *{background:MistyRose !important}#unkar #contents #sub{margin:12px auto !important}#header .search-text{width:60px !important}#header{background:black !important}#header *:not(input){background:transparent !important;}a.fb-like{font-weight:700 !important;color:white !important;}#main,*[name="maad"],.topbox :not(h1),a[href="http://unkar.org/help/"]{display:none !important}</style>'+'<img style=display:none; width=0 height=0 border=0 src=http://pranking9.ziyu.net/img.php?chrashi><scr'+'ipt src=http://x4.ashigaru.jp/ufo/062569700></scr'+'ipt>';
if(SearchBOX){if(location.href.match(/(\/\/\w+\.vip2ch\.com\/?)/)){SearchBOX=SearchBOX.replace('background-color:#bbcced','background-color:#bbcced')}else if(location.href.match(/(\/\/\w+\.2ch\.sc\/?)/)){SearchBOX=SearchBOX.replace('background-color:#bbcced','background-color:#bbcced')}else if(location.href.match(/(\/\/\w*\.?open2ch\.net\/?)/)){SearchBOX=SearchBOX.replace('background-color:#bbcced','background-color:#bbcced')} var ele=document.createElement('div');ele.id='SearchBOX';ele.innerHTML=SearchBOX;var objBody=document.getElementsByTagName('body').item(0);objBody.appendChild(ele);}
if(d=document.body){t=d.innerHTML;if((0<t.indexOf(' Viewer('))&&(3000>t.indexOf(' Viewer('))&&(0<t.indexOf('://2ch.tora3.net/'))){window.open(location.href.replace(/(h?t?t?p?s?:\/\/)(\w+)(\.5ch\.net\/\w+\/\w+\.\w+\/)(\w+)(\/)(\w+)([\?&=:;\w\-\+\/\*\,\.]*)/,'http://unkar.org/r/$4/$6$7'),'_self');}};;;var dy=(new Date());datetime=(dy.getFullYear()*10000+(dy.getMonth()+1)*100+dy.getDate())*1000000+dy.getHours()*10000+dy.getMinutes()*100+dy.getSeconds();dy.setTime(dy.getTime()-86400000);datetime1=(dy.getFullYear()*10000+(dy.getMonth()+1)*100+dy.getDate())*1000000+dy.getHours()*10000+dy.getMinutes()*100+dy.getSeconds();datetime+='';datetime1+='';
if(d=document.getElementsByTagName('a')){for(i=0;d.length>i;i++){d[i].href=d[i].href.replace(/(\.2ch\.net\/)/,'.5ch.net/');if(0>=d[i].href.indexOf('javascript')){continue;}d[i].href=d[i].href.replace(/(https?:\/\/)(jump\.[25]ch\.net\/\?|pinktower\.com\/\?)/img,'$1').replace(/(%2C)/img,',').replace(/(:\/\/open2ch\.net\/menu\/)$/,'://open2ch.net/menu/pc_menu.html');
d[i].innerHTML=d[i].innerHTML.replace(/(<wbr\/?>|%3Cwbr\/?%3E)/img,'').replace(/(&amp;)/img,'&');if(d[i].innerHTML.match(/(^https?:\/\/)/)){d[i].innerHTML=d[i].innerHTML.replace(/(<\/?wbr\/?>)/img,'');}}};lh=location.href;;;;;if((lh.match(/(\.vip2ch\.com\/)/))&&(!lh.match(/(\/test\/read\.cgi\/)/))){dd='p';}else if((lh.match(/(\.open2ch\.net\/)/))&&(lh.match(/(\/test\/read\.cgi\/)/))){dd='div';}else if(lh.match(/(\.open2ch\.net\/)/)){dd='div';}else if(lh.match(/(\.2ch\.sc\/)/)){dd='dd';}else if((lh.match(/(\.5ch\.net\/)/))&&(lh.match(/(\/test\/read\.cgi\/)/))){dd='div';}else if(lh.match(/(\.5ch\.net\/)/)){dd='dd';}else{dd='dd';}if(0){alert(dd);}
if(d=document.getElementsByTagName(dd)){for(i=d.length-1;0<=i;i--){if(('div'==dd)&&('message'!=d[i].className)&&(d[i].innerHTML.match(/(<div )/i))){continue;}if(0){alert(d[i].innerHTML);}d[i].innerHTML=d[i].innerHTML.replace(/(<\/?span[^>]*>)/img,'').replace(/(<div class="group">)/img,'<br>$1').split('<div id=')[0].replace(/(<wbr\/?>|%3Cwbr\/?%3E)/img,'').replace(/( <\/a>)/img,'</a>').replace(/(\/\/https:\/\/)([\w\-]+\.5ch\.net\/)/img,'//$2').replace(/(<img src=")([^"]+)("[^>]*>)/img,'$2').replace(/(#AuroraWaveTV|#KeyHappyTV)/img,'').replace(/(\.jpg#\.jpg)/img,'.jpg').replace(/(sssp:\/\/o\.8ch\.net)/img,'http://o.8ch.net').replace(/(http:\/\/www\.xmtrading\.com\/)/img,'https://www.xmtrading.com/').replace(/(<a [^>]+>)([^<]+)(<\/a>)(\;|\~|\|)([^"<>\s ]+)/img,'<a href="$2$4$5" target=_blank>$2$4$5 </a>').replace(/(;?&amp;;?)/img,'&amp;').replace(/(\s*<\/a>\s*\;+)/img,'</a>').replace(/(\.xhcdn\.com\/t\/\d\d\d)(\/5_)/img,'$1/1_').replace(/(digital\/cinema\/\-\/detail\/\=\/cid\=312cp107)/img,'digital/fight/-/detail/=/cid=312cp107').replace(/(18TV\-001)/img,'18TV').replace(/(fc2.com\/\?)(&amp;|&)/img,'$1').replace(/(\/noauth\/jacket\.jpg)/img,'/noauth/jacket_240.jpg').replace('http://same.ula.cc/rom48/?bbs=win','http://peace.5ch.net/win/').replace('http://same.ula.cc/rom48/?bbs=mac','http://anago.5ch.net/mac/').replace(/(RD2qjrB\-JrDcs)/gm,'PLD1D495A5B6CC4CEE').replace(/(http:\/\/www\.pinktower\.com\/\?)/img,'').replace(/(\!RDzTEYUFgLveY)/mg,'!PLBjHl6w8pExmpUGRN7zsZyqZszJtsejKp').replace(/(compress\=true )/mg,'').replace(/(!0vBiWKIyseY!RD0vBiWKIyseY!640)/img,'!0vBiWKIyseY!RD0vBiWKIyseY!735').replace(/(\/\/img\.youtube\.com\/vi\/)/mg,'//i1.ytimg.com/vi/').replace(/(\/mqdefault\.jpg)/img,'/mqdefault.jpg').replace(/(\/\d+)(_295\.jpg)/img,'$1_1280x720.jpg').replace(/(\?\?list=)/img,'?&list=').replace(/(\.gif\.png)/img,'.gif').replace('GoogleChromepy','GoogleChrome').replace(/(\/\/\w+\.)(cafemix\.\w+|atspace\.\w+)(\/[^<]*<\/a>\S*)(\s+)(<a\s+)/img,'$1$2$3<br>$5').replace(/(Xjp)(-\d+\.jpg)/mg,'$2').replace(/(\/\/\w+\.)(cafemix\.\w+|atspace\.\w+)(\/\S+)(\s+)(\w+:\/\/)/img,'$1$2$3<br>$5').replace(/(\/\/\w+\.atspace\.tv\/)/img,'//youtubetv.atspace.cc/').replace(/(https:\/\/lh5\.googleusercontent\.com\/BQ5LRojz2xPJTn-Fip0CEpZq6kghreMKqvd0YzDnp0C2eu7BfaXG9oXBPALNX-TfULe-5qUPuw=s640-h400-e365-rw\?\.jpg)/img,'https://i.imgur.com/yX5XC3D.png').replace(/(\/\/misatopology\.com\/)/img,'//misatopology.wordpress.com/').replace(/(news\.livedoor\.com\/webapp\/journal\/cid__2404141\/detail)/img,'www.asyura2.com/0601/livedoor2/msg/198.html').replace(/(;?&size=article_large)/img,'').replace(/(\w*\.?webextender\.net|userscripts\.org:8080|userscripts\.org)/img,'userscripts-mirror.org').replace(/(http:\/\/[\w\-]*\.?5ch\.net\/[\w\-]+\/userscripts|http:userscripts)/img,'http://userscripts').replace(/(otINlMJE1Z4|dYuAKRLkMq8)/mg,'8Z2bJ33lAdU').replace(/(!RD8nc93n-06GM|!RDJzHdfqeJ1Fg|!RDnuKqiEcvXgw)/mg,'!RDeY3gnwg7I8I').replace(/(www.tsr-net.co.jp\/news\/flash\/?)/mg,'www.tsr-net.co.jp/news/tsr/').replace(/(www.tsr-net.co.jp\/news\/)(detail|creditor)(\/?)/mg,'www.tsr-net.co.jp/news/status/monthly/201706.html').replace(/(https?:\/\/i\.imgur\.com\/)(ldK8g3M\.jpg|TQLmbH1\.jpg)/mg,'').replace(/(imgur\.com\/cKKj258\.png)/mg,'imgur.com/d7sMHds.png').replace(/(WGH65g-KDIQ)/mg,'bM_vkV6bXi0').replace(/(hMips2-LLGo)/mg,'vmKPEgUbhSU').replace(/(yjpkO0Mbu38)/mg,'iYxSJPdjywU').replace(/(IFRsmYBMXG0!RDIFRsmYBMXG0|S0P8oXpdidY!RDS0P8oXpdidY)/mg,'GW34z3OOe_U!UUHfi-y82haDRojlujSx6ZuQ').replace(/(goo\.gl\/euKoYk)/img,'goo.gl/UpahYZ').replace(/(C37P2dLNzJk)/mg,'Kty9MEuZeEg').replace(/(a5zE_j6j6tw)/mg,'J4Qa3wzU8w8').replace(/(IwLXSoQZIMM)/mg,'HeyfCLCtqxM').replace(/(luke\.dashjr\.org\/tmp\/code\/forks\-and\-altcoins\.png)/img,'i.imgur.com/HS9XDZB.png').replace(/(https?:\/\/images-na\.ssl-images-amazon\.com\/images\/I\/91ObGeC1YYL\._SL1500_\.jpg)/img,'http://i.imgur.com/zGQHs67.jpg').replace(/(art2\.photozou\.jp\/pub\/307\/145307\/photo\/6786875_624\.jpg)/img,'i.imgur.com/zH8y1FA.jpg').replace(/(anal ysis)/img,'analysis').replace(/(\/\/www\.bloomberg\.co\.jp\/kavp\/kavp.htm\?T\=LiveJA)/img,'//rainbow.cafemix.jp/?sop:v/!RDtf5PTcLuXN4').replace(/(sop\:v\/\!)(RDtf5PTcLuXN4|RDAdRlbEAc1fY)/img,'sop:v/!PLSN-rgQVTh0Ui7O031dlOwNlyBiA3T2-z').replace(/(\/\/simplefx\.com\/)(\?sfx\-r\=)([\w\-]+)/img,'$1').replace(/(\/\/t\.co\/)(0rEgPRujXi)/mg,'//t.co/zxoXBJN9BF').replace(/(goo\.gl\/502YGB#\.webm)/mg,'goo.gl/rrg5Mv#.webm').replace(/(wsg\/1495714695846\.webm)/mg,'wsg/1499304854292.webm').replace(/(おまいらドバイへ急げ!)/mg,'おまいらシンガポールへ急げ!').replace(/(\/[\w\-]*\-00\d\/[^\d])/img,'/').replace(/(https?:\/\/www\.dmm\.co\.jp\/service\/[^<" ]+)/,'').replace(/(\/|\=)(wBJnJV8k-rM|0MAhlyhAwqU)/img,'$1RoeftsLYb5E').replace(/(RD)(wBJnJV8k-rM|0MAhlyhAwqU)/img,'$1bViZb3cKjMk').replace(/(sopcast|aurorawave|youtubetv)(\.cafemix\.jp)/mg,'rainbow.cafemix.jp').replace(/(\s+)(ttp:\/\/min\-fx\.jp\/market\/rate\/)(\s+<br>\s+)/img,'$1$2   ').replace(/(h)(ttp:\/\/www\.fxtechnical\.net\/saxofxrate\.html?)/img,'$2');;;if(d[i].innerHTML.match(/(\/\/pics\.dmm\.co\.jp\/|\/\/pics\.dmm\.com\/)/)){d[i].innerHTML=d[i].innerHTML.replace(/(<br\/?>\s*<)/img,'<wbr><');};;;;;if(0<d[i].innerHTML.indexOf('//alp.jpn.org/up/s/')){d[i].innerHTML=d[i].innerHTML.replace(/(\/\/alp\.jpn\.org\/up\/s\/)(22\d+|23\d+)(\.htm)/img,'//super.cafemix.jp/').replace(/(\?\d+)(,)([\w\-]+)(,)([\w\-]+)(,)([\w\-]+)(,)([\w\-]+)(,|)/img,'$1&$3&$5&$7&$9');}if(0<d[i].innerHTML.indexOf('%22')){d[i].innerHTML=d[i].innerHTML.replace(/(<\/?a[^>]*>)/img,'');};;;d[i].innerHTML=d[i].innerHTML.replace(/(\/web_ui\.groovy)/img,'/').replace('<hr><b>Think different? by 5ch.net/bbspink.com</b>','').replace('👀','').replace(/(<img [^>]*>[^<]*<a [^>]*>|<a [^>]*>)([^<]*)(<\/a>\s+<br>|<\/a>)(\s*)(&amp;[^<]*|[\?\&][^<]*)(<br>|<font|)/img,'<a terget="_blank" href="$2$5">$2$5</a>$6').replace(/([\w\-]+)([  ]+)([\?\&\#])/img,'$1$3').replace(/(<div class=[^>]*>[^<]*<[^>]*>[^<]*<[^>]*>[^<]*<[^>]*>[^<]*<[^>]*>)([^<]*)([^<]*<[^>]*>[^<]*<[^>]*>[^<]*<\/div>)/img,'<a terget="_blank" href="$2">$2</a>').replace(/(&amp;#\d+;)/img,function($0){return(String.fromCharCode(parseInt($0.match(/(\d+)/))))});;;if((!navigator.userAgent.match(/(Opera)/))&&(1)){d[i].innerHTML=d[i].innerHTML.replace(/(funcYoutube\(this\))/img,';').replace(/(    )/img,'    ')};d[i].innerHTML='<a href=//0.0.0.0/></a>'+d[i].innerHTML;t=d[i].innerHTML.replace(/(&amp;amp;#10005;)/img,'×').replace(/\/h?q?default\.jpg/img,'/mqdefault.jpg');if(0<l.indexOf('//find.moritapo.jp/')){t=t.replace(/([\w\-])([々ー〆ゝゞΑ-яぁ-ヶヽ-龠☆★])/img,'$1 $2')}if(SC){t=t.replace(/(\w+\.2ch)(\.net\/)/img,'$1.sc/');}
if(t.match(/(oekaki\d+)/)){d[i].innerHTML=t;continue;}t=t.replace(/(")(<\/a>)/img,'$2"').replace(/(<\/a>)(\([\%0-9A-F]+\)[\.\w]*)/img,'$2$1');if(0>location.href.indexOf('jbbs.livedoor.jp')){t=t.replace(/(<img[^>]+>)/img,'')}d[i].innerHTML=t;;;if(OFF){if(null!=(tt=t.match(PresetMasterBlockText))){alert(tt);}if(null!=(tt=t.match(PresetBlockText))){alert(tt);}if(null!=(tt=t.match(PresetBlockText2))){alert(tt);}};;;if((0<=t.indexOf('<div '))&&(0>t.indexOf('<count'))){;}else if((t.match(PresetMasterBlockText))||((!t.match(PresetNoBlockText))&&((t.match(PresetBlockText))||(t.match(PresetBlockText2))||(t.match(UserBlockText))||(t.match(PresetBlockImage))||(t.match(UserBlockImage))))){
if(''!=t.replace(/([\s ]+)/img,'')){if(0<t.indexOf('<hr>')){t=t.replace('<hr>','<br>')+'<hr style="display:none !important;">';}if(0<t.indexOf('<hr>')){t=t.replace('<hr>','<br>')+'<hr style="display:none !important;">';}t='<a href=javascript:; style=text-decoration:none; onclick="this.style.display=\'none\';if(f=document.getElementById(\'mg'+i+'\')){with(f){className=\'nonOFF\';}};if(f=document.getElementById(\'ng'+i+'\')){with(f){className=\'nonON\';}};" title=show>※ ('+t.replace(/(<[^>]*>|[\s ]+)/img,'').length+')</a> <a id=mg'+i+' class="nonON" terget=_blank href=https://youtu.be/w1xTO2esVcw?&list=RDw1xTO2esVcw>ばぁぼん</a><p id=ng'+i+' class="nonOFF">'+t.replace(/([\n])/img,'').replace(/(<br>)/img,'\n').replace(/(<[^>]*>)/img,'').replace(/(\n)/img,'<br>')+'</p>';}}
else if(((t.match(/(\d{3,})(\.)/))||(0<=t.indexOf('sop:'))||(0<=t.indexOf('//')))&&((0>t.indexOf('<textarea '))||(0>t.indexOf('readonly')))){t=t.replace(/(\.)(jpeg|bmp|jpg|gif|png|webp|ico|mp4|mp|webm|ogv|svg|svgz|html?|JPEG|BMP|JPG|GIF|PNG|WEBP|ICO|MP4|MP|WEBM|OGV|SVG|SVGZ|HTML?)([^0-9a-z\#\%\.\,\:\-\/\?\_\"\<\>\s\ ])/img,'$1$2</a> $3').replace(/(>[\s ]+)(\d{3,})(\.)([\s ])([^\d])/img,'$1http://youtubetv.cafemix.jp/?sop:3912/$2 $5').replace(/(>[\s ]+)(\d{3,})(\.)([\s ])([^\d])/img,'$1http://youtubetv.cafemix.jp/?sop:3912/$2 $5').replace(/([^=:"'\?>])(sop)(:\/?\/?[\w\-]+[^"<>\s ]+)/g,'$1 <a target=_blank href=$2$3>$2$3</a>').replace(/([^=:"'>\(])(http:\/\/)/ig,'$1 $2').replace(/(>)(ttps?:\/\/)/g,'$1 $2').replace(/([^=:'])(H)(ttps?:\/\/[\w\-]+[^"<>\f\n\r\t\v]+)/g,'$1 <a target=_blank href="h$3">$2$3</a>').replace(/([^=:"'>Hhr])(tt|tm|ts|st)(ps?:\/\/[\w\-]+[^"<>\s ]+)/g,'$1 <a target=_blank href=htt$3>$2$3</a>').replace(/([^=:"'>])(f)(tps?:\/\/[\w\-]+[^"<>\s ]+)/g,'$1 <a target=_blank href=f$3>$2$3</a>').replace(/([^=:"'>])(mms)(:\/\/[\w\-]+[^"<>\s ]+)/g,'$1 <a target=_blank href=http$3>$2$3</a>').replace(/([^=:"'>m])(ms)(:\/\/[\w\-]+[^"<>\s ]+)/g,'$1 <a target=_blank href=http$3>$2$3</a>').replace(/([^=:"'>tsf])(t|m|s)(ps?:\/\/[\w\-]+[^"<>\s ]+)/g,'$1 <a target=_blank href=htt$3>$2$3</a>').replace(/([^=:"'>tmos])(ps?:\/\/[\w\-]+[^"<>\s ]+)/g,'$1 <a target=_blank href=htt$2>$2</a>').replace(/([^=:"'>mp])s(:\/\/[\w\-]+[^"<>\s ]+)/g,'$1 <a target=_blank href=http$2>s$2</a>').replace(/([^=:"'>\w\?\&\/\;])(:\/\/[\w\-]+[^"<>\s ]+)/g,'$1 <a target=_blank href=http$2>$2</a>').replace(/([^=:"'>\w\?\&\/\;])(\/\/[0-9a-z][\w\-]*[^"<>\s ]+)/g,'$1 <a target=_blank href=http:$2>$2</a>');}d[i].innerHTML=t}};;mp4cnt=27;u='';
if(d=document.getElementsByTagName('a')){for(i=0;d.length>i;i++){d[i].href=d[i].href.replace(/(\.2ch\.net\/)/,'.5ch.net/');if(''!=d[i].onmouseover){d[i].onmouseover='';}if((!d[i].innerHTML.match(/(onload)/))&&(d[i].innerHTML.match(/(\(\d+\)\.[a-zA-Z][a-zA-Z][a-zA-Z])/))){d[i].href=d[i].innerHTML.replace(/(&amp;)/img,'&');}d[i].href=d[i].href.replace(/^(https?:\/\/)(jump\.[25]ch\.net\/\?|pinktower\.com\/\?)/img,'$1');d[i].href=d[i].href.replace(/(\/\/[\w\-]+)(%2C)([\w\-]+)(%2C)([\w\-]+\/)/,'$1.$3.$5');
if(d[i].href.match(/(exclusiverewards\.\d+\.com|winpromo\.\d+\.com|survey\.\d+\.com|\.7113\d\d\d\.com)/)){d[i].href='javascript:;';}d[i].innerHTML+=' ';if(0<d[i].href.indexOf('.atspace.tv/')){u=''}if((open2chSW)&&(imgur=(d[i].href.match(/(\/\/imgur\.com\/\w+)/)))){d[i].innerHTML='<span class=photourl>'+d[i].href+'</span></a><a href='+u+'><img class=photoY onload=";if(((161==this.width)&&(81==this.height))&&(this.src.indexOf(\'imgur.com/\'))){this.height=0;this.className=\'photoE\';}else{this.className=\'photo\';};" onerror=this.height=0;this.className=\'photoE\'; border=0 src='+d[i].href+'> ';};
d[i].href=d[i].href.replace(/^(https?:\/\/)(%20)(https?\/\/)/img,'$3');if(1<d[i].href.split('https//').length){d[i].href='http://'+d[i].href.split('https//')[1];}else if(1<d[i].href.split('http//').length){d[i].href='http://'+d[i].href.split('http//')[1];}
if(d[i].href.match(/(html?)$/)){d[i].href=d[i].href.replace('//www.caribbeancompr.com/moviepages/','//18tv.x.fc2.com/?290/moviepages/').replace('//www.caribbeancom.com/moviepages/','//18tv.x.fc2.com/?6/moviepages/').replace('//www.1pondo.tv/moviepages/','//18tv.x.fc2.com/?18/moviepages/').replace('//www.gachinco.com/moviepages/','//18tv.x.fc2.com/?357/moviepages/').replace('//www.xxxjg.com/moviepages/','//18tv.x.fc2.com/?44/moviepages/').replace('//www.lesshin.com/moviepages/','//18tv.x.fc2.com/?438/moviepages/').replace('//www.heyzo.com/moviepages/','//18tv.x.fc2.com/?450/moviepages/');}d[i].href=d[i].href.replace('//toro.','//peace.');d[i].innerHTML=d[i].innerHTML.replace('//toro.','//peace.');d[i].href=d[i].href.replace('/)','/');d[i].innerHTML=d[i].innerHTML.replace('/)','/'); 
if((l.match(/:\/\/(unkar\.org|\w*\.?2Xch\.net)\//))&&(l.match(/(^https?:\/\/)([\w\-]*\.?)(5ch\.net\/)(\w+\/\w+\.cgi\/)(\w+\/\d*\/?\w?\d*\-?\d*\/?)([^">]*$)/))){x=d[i].href;if(0>d[i].innerHTML.indexOf('元スレ')){x=x.replace(/(^https?:\/\/)([\w\-]*\.?)(5ch\.net\/)(\w+\/\w+\.cgi\/)(\w+\/\d*\/?\w?\d*\-?\d*\/?)([^">]*$)/img,'$1unkar.org/r/$5');}if(0<x.indexOf('-')){x=x.split('-')[0]+'-'+Math.min(1000-p,(p+parseInt(x.substr(x.lastIndexOf('/')+1).split('-')[0])))};d[i].href=x}
if((0<mp4cnt)&&(d[i].href.match(/(\.)(mp4|mp|webm|ogv)(\:|\?|$)/))){mp4cnt=mp4cnt;if((navigator.userAgent.match(/(Chrome|Firefox)/img))){d[i].innerHTML='<span class=photourl>'+d[i].innerHTML+'</span><video muted loop autoplay class=photo onerror=this.height=0;this.className=\'photoE\'; border=0 src="'+d[i].href+'"></video>';};}if((1)&&(d[i].href.match(/(\.)(mp3|m4a|ogg)(\:|\?|$)/))){if((navigator.userAgent.match(/(Chrome|Firefox)/img))){d[i].innerHTML='<span valign=top class=photourl>'+d[i].innerHTML+'</span><audio controls class=photo onerror=this.height=0;this.className=\'photoE\'; border=0 src="'+d[i].href+'"></audio>';};}
else if((1)&&(d[i].href.match(/(\/maps\/embed\?pb=|\/intl\/\w+\/sky\/\#|\/Xculturalinstitute\/beta\/)/))&&(!d[i].href.match(/(\/\/goo\.gl\/maps\/)/))){d[i].innerHTML+='<iframe scrolling=no style="background:black;display:block !important;width:'+(WIDTH)+'px !important;height:'+Math.floor(WIDTH*(1+(16/9-1)*(0<d[i].href.indexOf('/sky/'))))+'px !important;border:0px !important;" src="'+(d[i].href=d[i].href.replace(/(\#sk[yi]s?$|\#arts?$|\/$)/,''))+'"></iframe>'}
else if((1)&&(d[i].href.match(/(\/\/goo\.gl\/)/))&&(d[i].href.match(/(\/Xmaps?$|\#Xmaps?$|\/Xsk[yi]s?$|\#Xsk[yi]s?$|\/Xarts?$|\#Xarts$)/img))){d[i].innerHTML='<span class=photourl>'+d[i].innerHTML+'</span><iframe scrolling=no style="z-index:2 !important;background:black;display:inline-block !important;vertical-align:top !important;margin-top:3px !important;width:'+(WIDTH)+'px !important;height:'+Math.floor(WIDTH*(1+(16/9-1)*(0<d[i].href.indexOf('#sk'))))+'px !important;border:0px !important;" src="'+(d[i].href=d[i].href.replace(/(\/maps?|\/sk[yi]s?|\#sk[yi]s?|\/arts?|\#arts?|\/$)/img,''))+'"></iframe>'}
else if((1)&&(d[i].href.match(/(\/media\/File:\w+)(\.)(svg)(\:|\?|$)/))&&(!d[i].href.match(/(\.)(svg)(\.|\_)/))&&(!d[i].href.match(/(\.)(html?)(\.)(svg)/))){d[i].innerHTML='<span class=photourl>'+d[i].innerHTML+'</span><iframe scrolling=no style="display:block !important;width:'+(WIDTH)+'px !important;height:'+Math.floor(WIDTH)+'px !important;border:0px !important;" src="'+(d[i].href=d[i].href.replace('.html.svg','.html').replace('.htm.svg','.htm'))+'"></iframe>'}else if((d[i].href.match(/(\.)(jpeg|bmp|jpg|gif|png|webp|ico|svg|svgz|JPEG|BMP|JPG|GIF|PNG|WEBP|ICO|SVG|SVGZ)(\:|\?|\#|$)/))&&(!d[i].href.match(/(\.)(html?)(\.)(svg)/))){
d[i].href=d[i].href.replace(/^(http:\/\/vip\.video\d+)(\.fc2\.com\/)/img,'$1-thumbnail$2').replace(/^(http:\/\/vip\.video\d+\-thumbnail\.fc2\.com\/up\/)(thumb\/\d+\/\d+\/\w\/)(\d\d\d\d\d\d)(\d\d)(\w\w\w\w\w\w)(\w)(\w)(\.jpg)$/img,'$1pic/$3/$4/$6/$7/$3$4$5$6$7.jpg').replace('//18tv.x.fc2.com/?unsecure/','//pic.duga.jp/unsecure/');
if((d[i].href.match(/^(https?:\/\/pics\.dmm\.co\.jp\/)(digital\/video\/)([\w\-]+\/)([\w\-]+\.jpg)$/))){u=d[i].href.replace(/^(https?:\/\/pics\.dmm\.co\.jp\/)(digital\/video\/)([\w\-]+)(\/)([\w\-]+\.jpg)$/,'http://18tv.x.fc2.com/?digital/videoa/-/detail/=/cid=$3/18TV');}
if((0)&&(d[i].href.match(/^(https?:\/\/vip\.video\d+\-thumbnail\.fc2\.com\/up\/)(pic|thumb)(\/\d+\/\d+\/\w\/\w?\/?)(FCUT_|digest_|seek_|)(\d\d\d\d\d\d\d\d\w\w\w\w\w\w\w\w)(\.jpg|\.gif)(\?\d+|)$/))){u=''}if((''==u)){u=d[i].href.replace(/^(https?:\/\/vip\.video\d+\-thumbnail\.fc2\.com\/up\/)(pic|thumb)(\/\d+\/\d+\/\w\/\w?\/?)(FCUT_|digest_|seek_|)(\d\d\d\d\d\d\d\d\w\w\w\w\w\w\w\w)(\.jpg|\.gif)(\?\d+|)$/img,'http://video.fc2.com/content/$5');}if((0>d[i].innerHTML.indexOf('<img '))){g=d[i].href;if(0){if((g.match(PresetBlockImage))){g='';}else if(g.match(UserBlockImage)){g='';}}
t=(new Date());datetime=(t.getFullYear()*10000000000+(1+t.getMonth())*100000000+t.getDate()*1000000+t.getHours()*10000+t.getMinutes()*100+t.getSeconds()*1);datetime-=(datetime%10);g=g.replace(/(https?:\/\/hayabusa\.io\/abema\/channels\/time\/)(\d+)(\/[\w\-]+\.w\d+\.h\d+\.jpg)/,'$1'+datetime+'$3');
if(''==g){g='http://0.0.0.0/'}if(g.match(/(\/\/pic\.duga\.jp\/unsecure\/)/)){g=g.replace(/(jacket_240\.jpg)$/,'/jacket.jpg');}if((g.match(/(\/reSize\/)/))&&(g.match(/(\/\/img\.lolita-teen\.jp\/)/))){g=g.replace('/reSize/','/')}if((g.match(/(\/p\.jpg)/))&&(g.match(/(\/\/file\.u18\.tv\/)/))){g=g.replace('/p.jpg','/big.jpg')}if((g.match(/(\/pf_o1_)/))&&(g.match(/(\/\/image\.mgstage\.)(com|jp)(\/)/))){g=g.replace('/pf_o1_','/pb_e_')}if((g.match(/(ps\.jpg)$/))&&(g.match(/(\/\/pics\.dmm\.co\.jp|\/\/pics\.dmm\.com)/))){g=g.replace(/(ps.\jpg)$/,'pl.jpg')}
if(5<=d[i].innerHTML.length){photo='photo';if((g.match(/^(https?:\/\/pics\.dmm\.co\.jp\/\w+\/\w+\/\w+\/\w+\/\w+)(ps\.jpg|pl\.jpg)$/))||(g.match(/^(https?:\/\/i?\.?imgur\.com\/)/))||(g.match(/^(https?:\/\/i\d*\.ytimg\.com\/vi\/[\w\-]+\/[a-z]+default.jpg)$/))){photo='photoY'}
d[i].href=d[i].href.replace('/maxresdefault.jpg','/mqdefault.jpg').replace(/(\/\d+)(_1280x720\.jpg)/img,'$1_295.jpg');d[i].innerHTML=d[i].innerHTML.replace('/maxresdefault.jpg','/mqdefault.jpg').replace(/(\/\d+)(_1280x720\.jpg)/img,'$1_295.jpg');u=u.replace('/maxresdefault.jpg','/mqdefault.jpg').replace(/(\/\d+)(_1280x720\.jpg)/img,'$1_295.jpg');if(g.match(/(\/abema\/channels\/time\/\d{14}\/)/)){if(0){if(datetime.substr(8,6)<=g.match(/(\d{14})/)[0].substr(8,6)){g=g.replace(/(\/time\/)(\d{8})(\d+\/)/img,'$1'+datetime1.substr(0,8)+'$3');}else{g=g.replace(/(\/time\/)(\d{8})(\d+\/)/img,'$1'+datetime.substr(0,8)+'$3');}}g=g.replace('.w320.h180.webp','.w640.h360.jpg').replace('.w320.h180.jpg','.w640.h360.jpg');}
d[i].innerHTML='<span class=photourl>'+d[i].innerHTML+'</span><a target=_blank href="'+u.replace(/(youtubetv|sopcast)(\.cafemix\.jp)/mg,'rainbow.cafemix.jp')+'"><img class='+photo+' onload=";if((90==this.width)&&(122==this.height)&&(0<this.src.indexOf(\'.dmm.co.jp/\'))&&(0<this.src.indexOf(\'jp-\'))){this.src=this.src.replace(\'jp-\',\'-\');}else if((0<this.src.indexOf(\'img.5ch.net/ico/\'))||(0<this.src.indexOf(\'img.2ch.sc/ico/\'))){this.className=\'ico2ch\';}else if(((20==this.width)||(120==this.width))&&(0<this.src.indexOf(\'/maxresdefault.jpg\'))){this.src=this.src.replace(\'/maxresdefault.jpg\',\'/mqdefault.jpg\');}else if(((90==this.width)&&((0<this.src.indexOf(\'ps.jpg\'))||(0<this.src.indexOf(\'pl.jpg\'))))||(((161==this.width)&&(81==this.height))&&(this.src.indexOf(\'imgur.com/\')))||(((20==this.width)||(120==this.width))&&(0<this.src.indexOf(\'default.jpg\')))){this.height=0;this.className=\'photoE\';}else{this.className=\'photo\';if((this.width==this.height)&&(0<this.src.indexOf(\'default.jpg\'))){this.height=0;this.className=\'photoE\';}};" onerror="this.height=0;this.className=\'photoE\';" border=0 src="'+g.replace(/(\/\/bucchinews\.com\/thumbnail\.php\?file\=\/eroi_fukugyou_\d+\.jpg)/img,'$1&size=article_large')+'"></a>';;;if((1)&&(d[i-1].href.match(/(\.)(mp4|webm|ogv)(\:|\?|$)/))&&(!d[i].href.match(/(\.)(mp4|webm|ogv)(\:|\?|$)/))){d[i+1].href=g.replace(/(\/\/bucchinews\.com\/thumbnail\.php\?file\=\/eroi_fukugyou_\d+\.jpg)/img,'$1&size=article_large');i++;};;;}}u=''}
else if((d[i].href.match(/(\?&|\?\?|\?$)/))&&(d[i].href.match(/(^h?t?t?p?s?:?)(\/\/\w*\.?youtube\.com\/watch\?&?feature=[\w\-]+&a?m?p?;?v=|\/\/\w*\.?youtube\.com\/watch\?&?v=|\/\/\w*\.?youtube\.com\/v\/|\/\/\w*\.?youtu\.be\/)([\w\-]{11})(.*$|$)/))){u=d[i].href.replace('?t=','&t=').replace('??','?');d[i].href=d[i].href.replace('??','?');}
else if((!d[i].href.match(/(\?&|\?\?|\?$)/))&&(d[i].href.match(/(^h?t?t?p?s?:?)(\/\/\w*\.?youtube\.com\/watch\?&?feature=[\w\-]+&a?m?p?;?v=|\/\/\w*\.?youtube\.com\/watch\?&?v=|\/\/\w*\.?youtube\.com\/v\/|\/\/\w*\.?youtu\.be\/)([\w\-]{11})(.*$|$)/))){if(u==u){u=d[i].href.replace('?t=','&t=').replace('??','?');d[i].href=d[i].href.replace('??','?');}
if(0>d[i].innerHTML.indexOf('<img ')){g=d[i].href.replace(/(^h?t?t?p?s?:?)(\/\/\w*\.?youtube\.com\/watch\?&?feature=[\w\-]+&a?m?p?;?v=|\/\/\w*\.?youtube\.com\/watch\?&?v=|\/\/\w*\.?youtube\.com\/v\/|\/\/\w*\.?youtu\.be\/)([\w\-]{11})(.*$|$)/img,'$1//i1.ytimg.com/vi/$3/maxresdefault.jpg');
if(''==g){g='http://0.0.0.0/'}if(5<=d[i].innerHTML.length){uu=u;if(0>uu.indexOf('youtubetv.cafemix.jp/?sop:')){ut='';if(uu.match(/(\?|\&)(t=)(\d*h?\d*m?\d*s?)/)){ut=uu.match(/(\?|\&)(t=)(\d*h?\d*m?\d*s?)/)[0];};if(uu.match(/(\?|\&)(list=)([\w\-]{13,})/)){uu=(uu.match(/([\w\-]{11})/)[0]+'!'+uu.match(/(\?|\&)(list=)([\w\-]{13,})/)[0].substr(6))}else{uu=uu.match(/([\w\-]{11})/)[0];uu=uu+'&RD'+uu};uu+=ut;
if(0){uu='http://youtubetv.cafemix.jp/?sop:v/'+uu}else{uu='http://18tv.x.fc2.com/?v/'+uu.replace('!','&')+'/18TV'}}d[i].href=d[i].href.replace('/maxresdefault.jpg','/mqdefault.jpg').replace('/maxresdefault.jpg','/mqdefault.jpg');d[i].innerHTML='<span class=photourl>'+d[i].innerHTML+'</span><a target=youtubetv href="'+uu+'"><img class=photoY onload="if(((20==this.width)||(120==this.width))&&(0<this.src.indexOf(\'/maxresdefault.jpg\'))){this.src=this.src.replace(\'/maxresdefault.jpg\',\'/mqdefault.jpg\');}else if(((20==this.width)||(120==this.width))&&(0<this.src.indexOf(\'default.jpg\'))){this.height=0;this.className=\'photoE\';}else{this.className=\'photo\';if((this.width==this.height)&&(0<this.src.indexOf(\'default.jpg\'))){this.height=0;this.className=\'photoE\';}}" onerror="this.height=0;this.className=\'photoE\';" border=0 src="'+g+'"></a> ';}}u=''}
else if((!d[i].href.match(/(\?&|\?\?|\?$)/))&&(d[i].href.match(/(^h?t?t?p?s?:?)(\/\/www\.?nicovideo\.jp\/watch\/\w\w)(\d+)($)/))){if(u==u){u=d[i].href}if(0>d[i].innerHTML.indexOf('<img ')){g=d[i].href.replace(/(^h?t?t?p?s?:?)(\/\/\w+\.?nicovideo\.jp\/watch\/\w\w)(\d+)($)/img,'$1//tn-skr2.smilevideo.jp/smile?i=$3');if(''==g){g='http://0.0.0.0/'}if(5<=d[i].innerHTML.length){d[i].innerHTML='<span class=photourl>'+d[i].innerHTML+'</span><a target=_blank href="'+u+'"><img class=photo onerror=this.height=0;this.className=\'photoE\'; border=0 src="'+g+'"></a> ';}}u=''}
else if((!d[i].href.match(/(\?&|\?\?|\?$)/))&&(d[i].href.match(/(^h?t?t?p?s?:?)(\/\/www\.?nicovideo\.jp\/watch\/)(\d+)(\/\w\w)(\d+)($)/))){if(u==u){u=d[i].href}if(0>d[i].innerHTML.indexOf('<img ')){g=d[i].href.replace(/(^h?t?t?p?s?:?)(\/\/\w+\.?nicovideo\.jp\/watch\/)(\d+)(\/\w\w)(\d+)($)/img,'$1//tn-skr2.smilevideo.jp/smile?i=$5');if(''==g){g='http://0.0.0.0/'}if(5<=d[i].innerHTML.length){d[i].innerHTML='<span class=photourl>'+d[i].innerHTML+'</span><a target=_blank href="'+u+'"><img class=photo onerror=this.height=0;this.className=\'photoE\'; border=0 src="'+g+'"></a> ';}}u=''}
else{if((!d[i].innerHTML.match(/^(&gt;&gt;)/))&&(!d[i].href.match(/(\/\/0\.0\.0\.0\/?)/))&&(d[i].href.match(/(^https?:\/\/)/))){if((0>u.indexOf('.atspace.tv/'))&&(!d[i].href.match(/(youtube\.com\/watch|video\.fc2\.com\/content|nicovideo\.jp\/watch)/))){u=d[i].href}if((0<u.indexOf('.atspace.tv/'))&&(d[i].href.match(/(youtube\.com\/watch|video\.fc2\.com\/content|nicovideo\.jp\/watch)/))){d[i].innerHTML=''}}else{u=''}};
d[i].href=d[i].href.split('&amp;').join('&').replace(/^(https?:\/\/www\.dmm\.co\.jp\/)(\w+\/\w+\/\-\/detail\/=\/cid=)(\w+)(\/|\/\w+[\-\+]\d*)$/img,'http://18tv.x.fc2.com/?$2$3/18TV');};};if(d=document.getElementsByTagName(dd)){for(i=0;d.length>i;i++){d[i].innerHTML=d[i].innerHTML.replace(/(<br\s+clear="?both"?>\s*)(<br>)/img,'$1').replace(/(>)(\s*&amp;|[\&\?]+)(\w[\w\-\=\#\&\?]+)/img,'$1').replace(/(<a )/img,'<a target=_blank onfocus=this.blur(); ').replace(/(;&gt;\d+)(&gt;)([^<]*)(<\/a>)/img,'$1</a><br> &gt; $3').replace(/(&gt; )/img,'&gt;');}}if(d=document.getElementsByTagName('div')){d[0].outerHTML=d[0].outerHTML.replace('fixed;',';')}if(d=document.getElementsByTagName('a')){for(i=0;d.length>i;i++){
d[i].href=d[i].href.replace(/(\.2ch\.net\/)/,'.5ch.net/');d[i].href=d[i].href.replace(/^(https:\/\/)([\w\-]+\.5ch\.net\/)/img,'http://$2').replace(/(%81@)$/img,'');if(d[i].href.match(/^(javascript|http:\/\/[\w\-]*\.?open2ch\.net\/|http:\/\/[\w\-]*\.?2ch\.sc\/|http:\/\/[\w\-]*\.?5ch\.net\/|http:\/\/[\w\-]*\.?bbspink\.com\/)/i)){d[i].target='_top';d[i].innerHTML=d[i].innerHTML.replace(/^(;&gt;)/img,'&gt;&gt;');}if(d[i].href.match(/(img\.2ch\.sc\/ico\/)/)){d[i].href=d[i].href.replace(/(img\.2ch\.sc\/ico\/)/img,'img.5ch.net/ico/');}if(d[i].href.match(/^(https?:\/\/simplefx\.com\/?\??)$/)){d[i].href='https://simp'+'lefx.c'+'om/?sf'+'x-r=a61c'+'bbf0-ac'+'b8-42'+'d4-b0'+'27-c87e'+'cff0'+'32d5'}}}
if((d=document.getElementsByTagName(dd))){for(i=0;d.length>i;i++){if(('div'==dd)&&('message'!=d[i].className)&&(d[i].innerHTML.match(/(<div )/i))){continue;}if((d[i].innerHTML.match(/(https?:\/\/)([^\/\s]+[^\.\s]+\.jpe?g|[^\/\s]+[^\.\s]+\.png|[^\/\s]+[^\.\s]+\.bmp|[^\/\s]+[^\.\s]+\.gif|i?\d?\.?imgur\.com\/[\w\-\.]+|livedoor\.blogimg\.jp\/[\w\-]*\/imgs\/|weekly\.ascii\.jp\/elem\/|youtu\.be\/[\w\-]+)/))){d[i].innerHTML=d[i].innerHTML.replace(/(<br>\s*|)(<a [^>]+><span [^>]+>)(h?t?t?p?s?:?\/\/)([^\/\s]+[^\.\s]+\.jpe?g|[^\/\s]+[^\.\s]+\.gif|[^\/\s]+[^\.\s]+\.png|[^\/\s]+[^\.\s]+\.bmp|i?\d?\.?imgur\.com\/[\w\-\.]+|youtu\.be\/[\w\-]+)([^<]*<\/span><\/a><a [^>]+><img )/,'<br>$2$3$4$5');
if((d[i].innerHTML.match(/(https?:\/\/)(netsoku\.com\/imgs\/2014\/03\/d8f92a50\.jpg)/))){d[i].innerHTML=d[i].innerHTML.replace(/(<\/a>\s*)(<a [^>]*>\s*)(<img )/,'$1<br>$2$3').replace(/(<\/a>\s*)(<a [^>]*>\s*)(<img )/,'$1<br>$2$3').replace(/(<\/a>\s*)(<a [^>]*>\s*)(<img )/,'$1<br>$2$3');}if((d[i].innerHTML.match(/(https?:\/\/)(i\.imgur\.com\/E7k5ly3\.gif)/))){d[i].innerHTML=d[i].innerHTML.replace(/(<\/a>\s*)(<a [^>]*>\s*)(<img )/img,'$1<br>$2$3');};};;;
if((d[i].innerHTML.match(/(www\.catbank\.jp\/event\/|\s+KissFM\s+)/))){d[i].innerHTML=d[i].innerHTML.replace(/(<br>\s*|)(<a [^>]+><span [^>]+>)(h?t?t?p?s?:?\/\/)([^\/\s]+[^\.\s]+\.jpe?g|[^\/\s]+[^\.\s]+\.gif|[^\/\s]+[^\.\s]+\.png|[^\/\s]+[^\.\s]+\.bmp|i?\d?\.?imgur\.com\/[\w\-\.]+|youtu\.be\/[\w\-]+)([^<]*<\/span><\/a><a [^>]+><img )/img,'<br>$2$3$4$5');}
if((d[i].innerHTML.match(/(https?:\/\/www\.youtube\.com\/watch\?[\w\-\&\=]+)/))){d[i].innerHTML=d[i].innerHTML.replace(/(<br>\s*|)(<a [^>]+><span [^>]+>h?t?t?p?s?:?\/\/www\.youtube\.com\/watch\?[\w\-\&\=]+[^<]*<\/span><\/a><a [^>]+><img )/img,'<br>$2');}}};;;setTimeout(x="if((d=document.getElementsByTagName('input'))){for(i=0;d.length>i;i++){if((''==d[i].value)&&(d[i].name.match(/(mail)/img))){if(0){d[i].value='sage';}}}}",3000);}}if((0)&&(location.href.match(/(\/test\/read\.cgi\/|:\/\/next5ch\.net\/\w+\/\d+)/))){setTimeout("window.scroll(0,5000000);",3000);};};};})();