-
-
Save Zegnat/6333616 to your computer and use it in GitHub Desktop.
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
<a href="http://causeyoucantyouwontandyoudontstop.com/" class="kick-it">Kick it!</a> |
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
(function(ki,ck,i,t){ | |
for ( | |
i = 0, | |
t = ki.length; | |
i < t; | |
ki[i++].href = 'https://youtu.be/' + | |
ck[Math.floor(Math.random()*ck.length)] | |
); | |
})( | |
document.querySelectorAll('a.kick-it'), | |
[ | |
'qORYO0atB6g', //Intergalactic | |
'z5rRZdiu1UE', //Sabotage | |
'uvRBUw_Ls2o', //Body Movin' | |
'BptQHAW2T5M', //Shake Your Rump | |
'eBShN8qT4lk', //(You Gotta) Fight For Your Right (To Party) | |
'07Y0cy-nvAg', //No Sleep Till Brooklyn | |
'Xf1YF_MH1xc', //Root Down | |
'evA-R9OS-Vo', //Fight For Your Right (Revisited) | |
'ru3gH27Fn6E', //So What Cha Want | |
'Z6xsKsJqVyg', //SABOTAGE (Live, awesome!!) | |
'D4-F6QFcNxQ', //B-Boys Makin With The Freak Freak | |
'XflfiylNNXY' //Three MC's and One DJ | |
] | |
); |
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
(function(ki,ck,i,t){for(i=0,t=ki.length;i<t;ki[i++].href='https://youtu.be/'+ck[Math.floor(Math.random()*ck.length)]);})(document.querySelectorAll('a.kick-it'),['qORYO0atB6g','z5rRZdiu1UE','uvRBUw_Ls2o','BptQHAW2T5M','eBShN8qT4lk','07Y0cy-nvAg','Xf1YF_MH1xc','evA-R9OS-Vo','ru3gH27Fn6E','Z6xsKsJqVyg','D4-F6QFcNxQ','XflfiylNNXY']); | |
/* This can be made shorter by removing the ‘kickit’ reference at the start, | |
* and by substituting the array with a 'string'.split(' '). | |
* As done by Google Closure Compiler: | |
(function(b,c,a,d){a=0;for(d=b.length;a<d;b[a++].href="https://youtu.be/"+c[Math.floor(Math.random()*c.length)]);})(document.querySelectorAll("a.kick-it"),"qORYO0atB6g z5rRZdiu1UE uvRBUw_Ls2o BptQHAW2T5M eBShN8qT4lk 07Y0cy-nvAg Xf1YF_MH1xc evA-R9OS-Vo ru3gH27Fn6E Z6xsKsJqVyg D4-F6QFcNxQ XflfiylNNXY".split(" ")); | |
* This is really no fun though. | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Awesome! Douze points for coding style !!!