youtube-landingpage/title.js

25 lines
477 B
JavaScript
Raw Normal View History

2019-08-24 00:18:00 +00:00
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];
}