おぐCOJ

COJは終わった

フォイルリスト作成スクリプト 1.3EX

お待たせして申し訳ありません?

 

COJの1.3EXへのバージョンアップに際して、AgentLaboの実装も変わっていました。

それに伴い、


フォイルリストを作ろう! ――実践編 - おぐCOJ

スクリプトが使えなくなっていることを確認。

怒りのおぐなーは30分ほどで修正しました。

これからは以下のコードをお使いください。

javascript:(function(d){(w=box_wrapper).style.top=0;(c=box_container).style.background='#000';w.style.height=c.style.height=(innerHeight-110)+'px';card_detail_wrapper.style.top='100%';Array.prototype.forEach.call(c.childNodes[1].childNodes,function(e){if(!(e.n=+(e.q=e.childNodes[3]).innerHTML.match(/\d/)))e.style.display='none';e.onclick=function(){this.style.display='none';window.prev=this;};e.oncontextmenu=function(){this.q.innerHTML='x'+(this.n=this.n-1||9);return false;};});box_search.onclick=function(){prev.style.display='inline-block';};})(document);

 

ちなみにガチ勢用のスクリプトフォイルリストを作ろう! ――ガチ勢編 - おぐCOJ)はこちらです。

javascript:(function(d){(w=box_wrapper).style.top=0;(c=box_container).style.background='#000';w.style.height=c.style.height=(innerHeight-110)+'px';card_detail_wrapper.style.top='100%';Array.prototype.forEach.call(c.childNodes[1].childNodes,function(e){if((e.n=+(e.q=e.childNodes[3]).innerHTML.match(/\d/) )<4)e.style.display='none';e.n-=3;e.q.innerHTML='x'+e.n;e.onclick=function(){this.style.display='none';window.prev=this;};e.oncontextmenu=function(){this.q.innerHTML='x'+(this.n=this.n-1||9);return false;};});box_search.onclick=function(){prev.style.display='inline-block';};})(document);

 

まだOperaでしか動作確認をとっていませんが、まぁ大丈夫なんじゃないですかね。

とりあえずすぐにIEは見てみます。火狐ちゃんは帰ってからかな。Safariは知らん。

 

ついき IEFirefoxのそれっぽいバージョンで動くのは見ました。やったぜ。