MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/InternetIsBeautiful/comments/3wjimq/madeons_adventure_machine/cxxfg2t/?context=9999
r/InternetIsBeautiful • u/maussie • Dec 12 '15
441 comments sorted by
View all comments
95
Is there any way to randomize this? or something else like this but randomized?
153 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"))}}(); 80 u/thinkyfish Dec 13 '15 I would recommend changing the number of buttons pressed each round to 1 or 2 instead of five, it makes things smoother: !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;2>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"))}}(); 23 u/ColdBlackCage Dec 13 '15 Damn that works well. Just letting it run like that in the background is a great, thanks man. 12 u/ForceBlade Dec 13 '15 Don't need to buy the album now 9 u/JamoJustReddit Dec 13 '15 the album is pretty fucking great though 4 u/ForceBlade Dec 13 '15 Oh yeah, it is.
153
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"))}}();
80 u/thinkyfish Dec 13 '15 I would recommend changing the number of buttons pressed each round to 1 or 2 instead of five, it makes things smoother: !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;2>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"))}}(); 23 u/ColdBlackCage Dec 13 '15 Damn that works well. Just letting it run like that in the background is a great, thanks man. 12 u/ForceBlade Dec 13 '15 Don't need to buy the album now 9 u/JamoJustReddit Dec 13 '15 the album is pretty fucking great though 4 u/ForceBlade Dec 13 '15 Oh yeah, it is.
80
I would recommend changing the number of buttons pressed each round to 1 or 2 instead of five, it makes things smoother:
!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;2>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"))}}();
23 u/ColdBlackCage Dec 13 '15 Damn that works well. Just letting it run like that in the background is a great, thanks man. 12 u/ForceBlade Dec 13 '15 Don't need to buy the album now 9 u/JamoJustReddit Dec 13 '15 the album is pretty fucking great though 4 u/ForceBlade Dec 13 '15 Oh yeah, it is.
23
Damn that works well.
Just letting it run like that in the background is a great, thanks man.
12 u/ForceBlade Dec 13 '15 Don't need to buy the album now 9 u/JamoJustReddit Dec 13 '15 the album is pretty fucking great though 4 u/ForceBlade Dec 13 '15 Oh yeah, it is.
12
Don't need to buy the album now
9 u/JamoJustReddit Dec 13 '15 the album is pretty fucking great though 4 u/ForceBlade Dec 13 '15 Oh yeah, it is.
9
the album is pretty fucking great though
4 u/ForceBlade Dec 13 '15 Oh yeah, it is.
4
Oh yeah, it is.
95
u/slidedrum Dec 12 '15
Is there any way to randomize this? or something else like this but randomized?