NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @license MIT // @author gmoTradeExtender // @name gmoTradeExtender // @version 2020/07/01 // @description Version 2020/07/01 // @include https://coin.z.com/jp/member/* // @exclude https://coin.z.com/jp/member/trade/chart/* // @exclude https://coin.z.com/jp/member/exchange/chart/* // @run-at document-end // @grant none // ==/UserScript== (function(){FX=' width='+(1024)+' height='+(400)+' frameborder=0 border=1 scrolling=no allowtransparency=false ';setTimeout('location.reload();',10*60*1000); TX='style=z-index:9999!important;position:absolute!important;top:-5px;left:'+(1024+16)+'px;width:1280px;background:rgb(40,40,41);>'; TX+='<style>#root>div{height:1600px!important;}div::-webkit-scrollbar{display:none;}.error-msg{display:none;}.info-modal,.modal-box{z-index:99999!important;}</style>'; TX+='<iframe'+(FX)+'src=https://coin.z.com/jp/member/trade/chart/10002></iframe>'; TX+='<iframe'+(FX)+'src=https://coin.z.com/jp/member/trade/chart/10003></iframe>'; TX+='<iframe'+(FX)+'src=https://coin.z.com/jp/member/trade/chart/10001></iframe>'; setTimeout("if(d=document.getElementsByTagName('footer')){d[0].innerHTML+='<span "+TX+"</span>';}",5000); localStorage['SpreadRateSkip']=1000;SpreadRate=(function(param){return(param[0].replace(/(\n|\r)/g,''));})` if(0<(T=parseInt(localStorage['SpreadRateSkip'])-50)){localStorage['SpreadRateSkip']=T}else{BID=0;ASK=0;if(('https://coin.z.com/jp/member/exchange/leverage/order'==location.href) ||('https://coin.z.com/jp/member/exchange/cryptocurrency/order'==location.href)){if(d=document.getElementsByTagName('td')){ for(i=d.length-1;0<i;i--){if('market-depth-last'==d[i].className){bc=0.0;ac=0.0;CHK=2.0;if(1){MOD='加重スプ';}else{MOD='スプ';} for(b=1;10>b;b++){if(CHK<=(bc+=parseFloat(d[i+b*3+1].innerHTML.replace(/(,)/,'')))){break;}}if('スプ'==MOD){b=1;}BID=parseInt(d[i+b*3].innerHTML.replace(/(,)/,'')); for(a=1;10>a;a++){if(CHK<=(ac+=parseFloat(d[i-a*3-1].innerHTML.replace(/(,)/,'')))){break;}}if('スプ'==MOD){a=1;}ASK=parseInt(d[i-a*3].innerHTML.replace(/(,)/,'')); SP=(ASK-BID);SPR=100*SP/BID;d[i-1].innerHTML=MOD+(SP)+'円';d[i+1].innerHTML=MOD+(SPR+'00000').substr(0,5)+'%';break;}}}} else if('https://coin.z.com/jp/member/trade/fx/order'==location.href){if(d=document.getElementsByTagName('span')){ for(i=d.length-1;0<i;i--){if('ask-value'==d[i].className){BID=parseInt(d[i-2].innerHTML.replace(/(,)/,''));ASK=parseInt(d[i].innerHTML.replace(/(,)/,'')); SP=(ASK-BID);SPR=100*SP/BID;d[i-1].innerHTML=d[i-1].innerHTML.split('<br>')[0]+'<br>'+(SPR+'00000').substr(0,5)+'%';break;}}}}}`;setInterval(SpreadRate,100);})();