Skip to content

Instantly share code, notes, and snippets.

@wkei
Last active August 6, 2018 07:56
Show Gist options
  • Save wkei/9750dd5390192b8234a5c9cd31c7e5f1 to your computer and use it in GitHub Desktop.
Save wkei/9750dd5390192b8234a5c9cd31c7e5f1 to your computer and use it in GitHub Desktop.
autoplay in https://aidn.jp/mikutap/ πŸ˜‚γ€€

has to type javascript: manually... (

copy to pc browser's address bar

javascript:f=function(){x=window.innerWidth*Math.random();y=window.innerWidth*Math.random();$('canvas').trigger(jQuery.Event("mousedown",{clientX:x,clientY:y})).trigger(jQuery.Event("mouseup", {clientX:x,clientY:y}))};setInterval(f,1500*Math.random());setInterval(f,1500*Math.random())

copy to mobile browser's address bar (a little bit difficult...

javascript:f=function(){x=window.innerWidth*Math.random();y=window.innerWidth*Math.random();$('canvas').trigger(jQuery.Event("touchstart",{clientX:x,clientY:y})).trigger(jQuery.Event("touchend",{clientX:x,clientY:y}))};setInterval(f,1500*Math.random());setInterval(f,1500*Math.random())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment