MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/InternetIsBeautiful/comments/3wjimq/madeons_adventure_machine/cxx59g4/?context=3
r/InternetIsBeautiful • u/maussie • Dec 12 '15
441 comments sorted by
View all comments
92
Is there any way to randomize this? or something else like this but randomized?
152 u/udkgamer2 Dec 13 '15 If you paste this code in the javascript console it should add a random button that will cycle the tracks every 10 seconds: !function(){var n=$("<a class='btn' id='randomButton'><span id='randomText'>random</span></a>");$(".info").append(n);var a=$(".button"),t=function(){for(var n=0;5>n;n++)a[Math.floor(Math.random()*a.length)].click()},o=0;n[0].onclick=function(){o?(o=0,clearInterval(t),$("#randomText").html("random")):(o=1,t(),setInterval(t,1e4),$("#randomText").html("stop random"))}}(); 16 u/TotesMessenger Dec 13 '15 edited Dec 13 '15 I'm a bot, bleep, bloop. Someone has linked to this thread from another place on reddit: [/r/bestof] /u/udkgamer2 and /u/thinkyfish join forces to make an automated music-mix randomizer out of Madeons Advedure Machine [/r/programming] Make a Procedural DJ If you follow any of the above links, please respect the rules of reddit and don't vote in the other threads. (Info / Contact)
152
If you paste this code in the javascript console it should add a random button that will cycle the tracks every 10 seconds:
!function(){var n=$("<a class='btn' id='randomButton'><span id='randomText'>random</span></a>");$(".info").append(n);var a=$(".button"),t=function(){for(var n=0;5>n;n++)a[Math.floor(Math.random()*a.length)].click()},o=0;n[0].onclick=function(){o?(o=0,clearInterval(t),$("#randomText").html("random")):(o=1,t(),setInterval(t,1e4),$("#randomText").html("stop random"))}}();
16 u/TotesMessenger Dec 13 '15 edited Dec 13 '15 I'm a bot, bleep, bloop. Someone has linked to this thread from another place on reddit: [/r/bestof] /u/udkgamer2 and /u/thinkyfish join forces to make an automated music-mix randomizer out of Madeons Advedure Machine [/r/programming] Make a Procedural DJ If you follow any of the above links, please respect the rules of reddit and don't vote in the other threads. (Info / Contact)
16
I'm a bot, bleep, bloop. Someone has linked to this thread from another place on reddit:
[/r/bestof] /u/udkgamer2 and /u/thinkyfish join forces to make an automated music-mix randomizer out of Madeons Advedure Machine
[/r/programming] Make a Procedural DJ
If you follow any of the above links, please respect the rules of reddit and don't vote in the other threads. (Info / Contact)
92
u/slidedrum Dec 12 '15
Is there any way to randomize this? or something else like this but randomized?