1. Play on the ImDeity Minecraft Multiplayer server -- Goto the "Multiplayer" section of Minecraft and type "mc.imdeity.com" to join!
    Dismiss Notice

How to make the website do the harlem shake

Discussion in 'General Discussions' started by thecrazyman11, February 27, 2013.

  1. thecrazyman11

    thecrazyman11

    • Vip
    Joined:
    January 31, 2012
    Messages:
    916
    Likes Received:
    258
    Trophy Points:
    568
    In-Game Name:
    thecrazyman11
    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)}}})()
    1. Make sure you view this page on Google Chrome
    2. Make sure your sound is on
    3. Right click anywhere on the home page and hit inspect element. You will see a box come up. Look for the console tab and click it.
    4. In the console chat box, put in all this code( copy is normal, ctrl+v to paste )


    Staff Disclaimer: This actually makes your browser do the harlem shake.
     
    The_Yogs and jumbo33 like this.
  2. Leviathan_Ziz

    Leviathan_Ziz

    • Gold
    Joined:
    May 3, 2011
    Messages:
    10,069
    Likes Received:
    2,548
    Trophy Points:
    758
    In-Game Name:
    Leviathan_Ziz
    And what does this exactly do?
     
  3. thecrazyman11

    thecrazyman11

    • Vip
    Joined:
    January 31, 2012
    Messages:
    916
    Likes Received:
    258
    Trophy Points:
    568
    In-Game Name:
    thecrazyman11
    Play the music and make all the boxes shake around, you must be on the homepage though
     
  4. reaper8596

    reaper8596

    Joined:
    February 9, 2013
    Messages:
    16
    Likes Received:
    1
    Trophy Points:
    78
    In-Game Name:
    reaper8596
    how do I know this isn't a virus?
     
  5. thecrazyman11

    thecrazyman11

    • Vip
    Joined:
    January 31, 2012
    Messages:
    916
    Likes Received:
    258
    Trophy Points:
    568
    In-Game Name:
    thecrazyman11
    Its not, i did it and my comp's fine. I am putting my reputation here
     
  6. smcallah

    smcallah

    • Administrator
    Joined:
    April 17, 2011
    Messages:
    2,160
    Likes Received:
    2,808
    Trophy Points:
    693
    In-Game Name:
    smcallah
    Best thing I saw on TV today.

    "Do you want to come on my show and do the Harlem Shake?"

    "I'll murder you live in the studio."
     
  7. DunkMastaZ

    DunkMastaZ

    Joined:
    November 16, 2011
    Messages:
    537
    Likes Received:
    306
    Trophy Points:
    493
    In-Game Name:
    Mr_Jeans
    will it be permanent?
     
  8. Fiver26

    Fiver26

    • Gold
    Joined:
    November 12, 2011
    Messages:
    1,035
    Likes Received:
    750
    Trophy Points:
    568
    In-Game Name:
    Fiver26
    i tried this and they come up with errors...
     
  9. thecrazyman11

    thecrazyman11

    • Vip
    Joined:
    January 31, 2012
    Messages:
    916
    Likes Received:
    258
    Trophy Points:
    568
    In-Game Name:
    thecrazyman11
    No, when click away it stops.
    Make sure you copy the whole code and enter it into console, not elements or anything else
     
  10. Fiver26

    Fiver26

    • Gold
    Joined:
    November 12, 2011
    Messages:
    1,035
    Likes Received:
    750
    Trophy Points:
    568
    In-Game Name:
    Fiver26
    did that, still comes up with errors
     
  11. jumbo33

    jumbo33

    Joined:
    December 14, 2011
    Messages:
    192
    Likes Received:
    186
    Trophy Points:
    528
    In-Game Name:
    jumbotaters
    This was actually pretty awesome haha kudos to you!
     
  12. thecrazyman11

    thecrazyman11

    • Vip
    Joined:
    January 31, 2012
    Messages:
    916
    Likes Received:
    258
    Trophy Points:
    568
    In-Game Name:
    thecrazyman11
    do you have any extensions?
     
  13. Fiver26

    Fiver26

    • Gold
    Joined:
    November 12, 2011
    Messages:
    1,035
    Likes Received:
    750
    Trophy Points:
    568
    In-Game Name:
    Fiver26
    not that i know of
     
  14. thecrazyman11

    thecrazyman11

    • Vip
    Joined:
    January 31, 2012
    Messages:
    916
    Likes Received:
    258
    Trophy Points:
    568
    In-Game Name:
    thecrazyman11
    Ah, do you have developer mode on? You turn it on by going to chrome menu, tools, extesions then check developer mode
     
  15. reaper8596

    reaper8596

    Joined:
    February 9, 2013
    Messages:
    16
    Likes Received:
    1
    Trophy Points:
    78
    In-Game Name:
    reaper8596
    I'm sorry for disbelieving you, i am just careful.
     
  16. LlamaWithAGun

    LlamaWithAGun

    • BANNED
    Joined:
    March 9, 2012
    Messages:
    334
    Likes Received:
    336
    Trophy Points:
    208
    In-Game Name:
    LlamaWithAGun
    just type into youtube do the harlem shake and the page starts dancing
     
  17. Fiver26

    Fiver26

    • Gold
    Joined:
    November 12, 2011
    Messages:
    1,035
    Likes Received:
    750
    Trophy Points:
    568
    In-Game Name:
    Fiver26
    did that, still getting errors
     
  18. thecrazyman11

    thecrazyman11

    • Vip
    Joined:
    January 31, 2012
    Messages:
    916
    Likes Received:
    258
    Trophy Points:
    568
    In-Game Name:
    thecrazyman11
    What software are you running/what year is it?
     
  19. Fiver26

    Fiver26

    • Gold
    Joined:
    November 12, 2011
    Messages:
    1,035
    Likes Received:
    750
    Trophy Points:
    568
    In-Game Name:
    Fiver26
    no idea, softwares not my area of computer-work
     
    lilgrubs likes this.
  20. legoazurp

    legoazurp

    • Vip
    Joined:
    December 15, 2011
    Messages:
    874
    Likes Received:
    593
    Trophy Points:
    498
    In-Game Name:
    LEGOAP
    why would I want this? why would anyone want this?
     
    Rmarmorstein likes this.

Share This Page