Guest User

_Songbird Source

a guest
Sep 3rd, 2014
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function e(a){var b;b=b||["\u2261","\u2669\u266a\u266b\u266c\u266d","\u266e \u266f"];a=a.split(" ");for(var c=b[0],d=a.length;0<d;d--){for(var f=a[d-1].length;0<f;f--).1>Math.random()&&(c+=b[2][Math.floor(Math.random()*b[2].length)]),c+=b[1][Math.floor(Math.random()*b[1].length)];c+=b[0];1!==d&&(c+=" "+b[0])}return c}
  2. (function(a){a=document.getElementById(a);var b=a.parentNode;a.placeholder="tweet tweet, all text will be converted to song on submit";a.addEventListener("keyup",function(){this.title=e(this.value)});b.addEventListener("submit",function(c){c.preventDefault();a.value=e(a.value);b.submit();return!1},!1);console.log("Songbird Mode Active! -- all threads/replies will be converted to song.")})("id_content");
Advertisement
Add Comment
Please, Sign In to add comment