Asicosilomu

Self-typing (Marquee) title script

Sep 25th, 2021
705
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Self-typing (Marquee) title script by Asicosilomu
  2. // Gives a cool typing effect to page title
  3. // You can either embed it on your own website or use it as a userscript to apply it to all pages you visit
  4. // Sometimes page title may freeze and only show one letter. Just give it a refresh.
  5.  
  6. // Typing speed (ms)
  7. var speed = 100;
  8.  
  9. // DO NOT CHANGE ANYTHING BELOW THIS LINE!
  10. var title = document.title;
  11. var index = 0;
  12. setInterval(function() {document.title = title.substring(0, index);index = index + 1;}, speed);
RAW Paste Data