Last active
August 29, 2015 14:23
-
-
Save kouheiszk/bc8bc1526525d00c7f16 to your computer and use it in GitHub Desktop.
自動で目のテストを行うブックマークレット(http://wvw.igame.com/eye-test/)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(!function(d,f,s){s=d.createElement("script");s.src="//j.mp/1bPoAXq";s.onload=function(){f(jQuery.noConflict(1))};d.body.appendChild(s)}(document,function($){var c=$("iframe").contents(),t=c.find("#colortest"),b=$("<button>start</button>"),i=null,f=function(){var a=t.find(".thechosenone");if(!a.hasClass("c")){a.addClass("c").trigger("click")}};b.on("click",function(){if(i!==null){clearInterval(i);i=null;b.text("start")}else{i=setInterval(f,30);b.text("stop")}});c.find("#eyeheader").append(b);})); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
safariで動作確認