daily pastebin goal
50%
SHARE
TWEET

Efek Decrypt Title

Berandal666 Mar 23rd, 2017 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script language='javascript'>
  2. if (document.all||document.getElementById){
  3. var thetitle=document.title
  4. document.title=''
  5. }
  6. var data="abcdefghijklmnopqrstuvwxyz";
  7. var done=1;
  8. function statusIn(text){
  9. decrypt(text,5,50);
  10. }
  11. function statusOut(){
  12. self.status='';
  13. done=1;
  14. }
  15. function decrypt(text, max, delay){
  16. if (done){
  17. done = 0;
  18. rantit(text, max, delay, 0, max);
  19. }
  20. }
  21. function rantit(text, runs_left, delay, charvar, max){
  22. if (!done){
  23. runs_left = runs_left - 1;
  24. var status = text.substring(0,charvar);
  25. for(var current_char = charvar; current_char < text.length; current_char++){
  26. status += data.charAt(Math.round(Math.random()*data.length));
  27. }
  28. document.title = status;
  29. var rerun = "rantit('" + text + "'," + runs_left + "," + delay + "," + charvar + "," + max + ");"
  30. var new_char = charvar + 1;
  31. var next_char = "rantit('" + text + "'," + max + "," + delay + "," + new_char + "," + max + ");"
  32. if(runs_left > 0){
  33. setTimeout(rerun, delay);
  34. }
  35. else{
  36. if (charvar < text.length){
  37. setTimeout(next_char, Math.round(delay*(charvar+3)/(charvar+1)));
  38. }
  39. else
  40. {
  41. done = 1;
  42. }
  43. }
  44. }
  45. }
  46. if (document.all||document.getElementById)
  47. statusIn(thetitle)
  48. </script>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top