youtube-landingpage/title.js
2019-08-24 02:18:00 +02:00

25 lines
477 B
JavaScript

if(document.addEventListener){
document.addEventListener("DOMContentLoaded", function(){
loaded();
});
} else if(document.attachEvent){
document.attachEvent("onreadystatechange", function(){
loaded();
});
}
function loaded(){
setInterval(loop, 600);
}
var x = 0;
var titleText = [ "b", "by", "byR", "byRe", "byReq", "byReqz", "byReqz.d", "byReqz.de" ];
function loop(){
document.getElementsByTagName("title")[0].innerHTML = titleText[x++%titleText.length];
}