MCPcopy Create free account
hub / github.com/hoothin/UserScripts / scrollMsg

Function scrollMsg

HacgGodTurn/HacgGodTurn.user.js:223–232  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

221 if(unsafeWindow.quote){
222 var msg = "…" + unsafeWindow.quote + "…",pos = 0;
223 function scrollMsg() {
224 document.title = msg.substring(pos, msg.length) + msg.substring(0, pos);
225 pos++;
226 if (pos > msg.length) {
227 pos = 0;
228 document.title = originTitile;
229 }else{
230 setTimeout(scrollMsg,250);
231 }
232 }
233 scrollMsg();
234 }
235 }

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected