The LPA Harlem Shake

Discussion in 'Random Chat' started by CaptainObvious, Feb 16, 2013.

  1. #1
    CaptainObvious

    CaptainObvious Well-Known Member

    Joined:
    Oct 20, 2012
    Messages:
    85
    Likes Received:
    0



    The LPA Harlem Shake!


    Code:
    javascript:(function(){function c(){var e=document.createElement("link");e.setAttribute("type","text/css");e.setAttribute("rel","stylesheet");e.setAttribute("href",f);e.setAttribute("class",l);document.body.appendChild(e)}function h(){var e=document.getElementsByClassName(l);for(var t=0;t<e.length;t++){document.body.removeChild(e[t])}}function p(){var e=document.createElement("div");e.setAttribute("class",a);document.body.appendChild(e);setTimeout(function(){document.body.removeChild(e)},100)}function d(e){return{height:e.offsetHeight,width:e.offsetWidth}}function v(i){var s=d(i);return s.height>e&&s.height<n&&s.width>t&&s.width<r}function m(e){var t=e;var n=0;while(!!t){n+=t.offsetTop;t=t.offsetParent}return n}function g(){var e=document.documentElement;if(!!window.innerWidth){return window.innerHeight}else if(e&&!isNaN(e.clientHeight)){return e.clientHeight}return 0}function y(){if(window.pageYOffset){return window.pageYOffset}return Math.max(document.documentElement.scrollTop,document.body.scrollTop)}function E(e){var t=m(e);return t>=w&&t<=b+w}function S(){var e=document.createElement("audio");e.setAttribute("class",l);e.src=i;e.loop=false;e.addEventListener("canplay",function(){setTimeout(function(){x(k)},500);setTimeout(function(){N();p();for(var e=0;e<O.length;e++){T(O[e])}},15500)},true);e.addEventListener("ended",function(){N();h()},true);e.innerHTML=" <p>If you are reading this, it is because your browser does not support the audio element. We recommend that you get a new browser.</p> <p>";document.body.appendChild(e);e.play()}function x(e){e.className+=" "+s+" "+o}function T(e){e.className+=" "+s+" "+u[Math.floor(Math.random()*u.length)]}function N(){var e=document.getElementsByClassName(s);var t=new RegExp("\\b"+s+"\\b");for(var n=0;n<e.length;){e[n].className=e[n].className.replace(t,"")}}var e=30;var t=30;var n=350;var r=350;var i="//s3.amazonaws.com/moovweb-marketing/playground/harlem-shake.mp3";var s="mw-harlem_shake_me";var o="im_first";var u=["im_drunk","im_baked","im_trippin","im_blown"];var a="mw-strobe_light";var f="//s3.amazonaws.com/moovweb-marketing/playground/harlem-shake-style.css";var l="mw_added_css";var b=g();var w=y();var C=document.getElementsByTagName("*");var k=null;for(var L=0;L<C.length;L++){var A=C[L];if(v(A)){if(E(A)){k=A;break}}}if(A===null){console.warn("Could not find a node of the right size. Please try a different page.");return}c();S();var O=[];for(var L=0;L<C.length;L++){var A=C[L];if(v(A)){O.push(A)}}})()
    
    ^le javascprit code.


    Chrome guide:
    Press F12 on our site and click Console, Ctrl + v the code above and sit back.

    Any other browser:

    Put this in your URL bar, make sure it didn't remove javascript: at the beginning.

    The more people post, the better it looks.
     
  2. #2
    Jeff

    Jeff WORSHIP LPA Addicted VIP

    Joined:
    Feb 3, 2010
    Messages:
    18,516
    Likes Received:
    338



    That's fucking great. :lol:
     
  3. #3
    lime treacle

    lime treacle You are not alone Über Member

    Joined:
    Jul 19, 2011
    Messages:
    10,907
    Likes Received:
    1,791



    :lol:

    Wrong subforum, but this is great, made me laugh.
     
  4. #4
    Tim

    Tim My perversion power is accumulating LPA Super Member

    Joined:
    Aug 6, 2007
    Messages:
    7,033
    Likes Received:
    142



    Hahahaha, nice work.
     
  5. #5
    Qwerty19

    Qwerty19 Well-Known Member

    Joined:
    Nov 21, 2011
    Messages:
    2,226
    Likes Received:
    209



    Ahah, nicely done :)
     
  6. #6
    Delicious Dave

    Delicious Dave I'm gonna drive you into your own anus.

    Joined:
    May 25, 2012
    Messages:
    2,320
    Likes Received:
    277



    How the fuck? :O Love it
     
  7. #7
    hawk

    hawk because the internet LPA Super VIP

    Joined:
    Apr 1, 2010
    Messages:
    7,681
    Likes Received:
    32



    Fucking hell good dude. Nice.
     
  8. #8
    Duragon

    Duragon Well-Known Member

    Joined:
    Aug 5, 2010
    Messages:
    302
    Likes Received:
    27



    That was some serious.. Whoa-.
     
  9. #9
    Derek

    Derek LPAssociation.com Administrator LPA Administrator

    Joined:
    Jul 13, 2002
    Messages:
    41,885
    Likes Received:
    2,374



    Not only is this fucking amazing, it works even better on the front page. You sir are genius.

    Did you code this yourself?
     
  10. #10
    hawk

    hawk because the internet LPA Super VIP

    Joined:
    Apr 1, 2010
    Messages:
    7,681
    Likes Received:
    32



    I found it works best on Facebook.
     
  11. #11
    Agent

    Agent Formerly known as Agent Sideburns LPA Über VIP

    Joined:
    Apr 20, 2006
    Messages:
    11,884
    Likes Received:
    156



    Hahah that was fucking awesome!
     
  12. #12
    Filip

    Filip god break down the door LPA Contributor

    Joined:
    May 23, 2012
    Messages:
    10,879
    Likes Received:
    1,493



    :lol: Awesome!
     
  13. #13
    Wizardofozil

    Wizardofozil Well-Known Member

    Joined:
    Apr 12, 2010
    Messages:
    1,979
    Likes Received:
    142



    Can't do it on my phone :(
     
  14. #14
    snailharvest

    snailharvest nice

    Joined:
    Apr 7, 2012
    Messages:
    1,375
    Likes Received:
    13



    Epic!
     
  15. #15
    Decay

    Decay Well-Known Member

    Joined:
    Jun 27, 2011
    Messages:
    1,887
    Likes Received:
    97



    Hahaha holy fuck! :lol:
     
  16. #16
    Zane

    Zane WARRIOR PRINCESS LPA Team

    Joined:
    Apr 3, 2010
    Messages:
    4,021
    Likes Received:
    96



    Yeah, Harlem Shake, let's just say my school's had a giant shake down this week in the lunch room, and there were shirtless dudes and broken tables.
     
  17. #17
    Apop

    Apop LPA VIP LPA VIP

    Joined:
    Aug 19, 2010
    Messages:
    1,281
    Likes Received:
    24



    Hahahah! It looked so funny on the site's homepage. Nice work!
     
  18. #18
    Liz

    Liz ChainsawLiz LPA VIP

    Joined:
    Apr 29, 2011
    Messages:
    2,295
    Likes Received:
    62



    HAHA Omg this is amazing xDDD
     
  19. #19
    Arjun

    Arjun Comin' at you from every side!!!!

    Joined:
    Dec 4, 2011
    Messages:
    632
    Likes Received:
    22



    awesome!!!!
     
  20. #20
    MKH

    MKH Bat of Gotham LPA Super VIP

    Joined:
    Apr 29, 2010
    Messages:
    3,311
    Likes Received:
    18



    This is too fucking cool :lol:
     

Share This Page