Skip to content

Instantly share code, notes, and snippets.

@vasilisvg
Last active December 21, 2015 11:39
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vasilisvg/6300485 to your computer and use it in GitHub Desktop.
Save vasilisvg/6300485 to your computer and use it in GitHub Desktop.
Random song by the Beastie Boys as a Kick It link, instead of wasting your visitors' time with silly social media buttons. Based on the excellent idea by @heejeroen http://twitter.com/heejeroen/status/370199786722705408
<?php
$kickit = array(
'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
);
$ln = count($kickit) - 1;
?>
<a href="https://www.youtube.com/watch?v=<?php echo $kickit[rand(0, $ln)]; ?>">Kick it!</a>
@4rn0
Copy link

4rn0 commented Aug 22, 2013

@vasilisvg
Copy link
Author

@4rn0 Added, thanks!

@4rn0
Copy link

4rn0 commented Aug 22, 2013

I did a basic JS version, since all the social buttons are normally JS as well! :-)
https://gist.github.com/4rn0/6306332

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment