User:Timothy10583/common.js

//favicon code that is definitely not stolen from Stakc oVerflo var link = document.querySelector("link[rel~='icon']"); if (!link) { link = document.createElement('link'); link.rel = 'icon'; document.getElementsByTagName('head')[0].appendChild(link); } link.href = 'https://cdn.discordapp.com/attachments/525467619336388619/962596426108510298/favicon.ico';

//marquee array var funnyquote = [ "frick", "sparta pulse base v8 vegetable drink", "v is a tragedy of a letter anyways", "get back to your homework,", "fifty nine degrees celcius", "spunch bop", "thanj you kayin :spunch", "i think that is enough test quotes", "kyle larson", "i only said die", "this article does not deserve to be read", "ignore the poorly structured border to the right", "official tetopedia spectator", "bottle of water", "?",		"that's really unfortunate. i'm sorry", "hot fudge tuesday", "alaskan bull Whorm" ];

//marquee epic test code var epicquote = funnyquote[Math.floor(Math.random*funnyquote.length)] var mySpan = document.createElement("span"); epicquote += ' '.repeat(50) mySpan.innerHTML = epicquote; mySpan.id = "quote"; mySpan.style.fontFamily = "sans-serif"; mySpan.style.fontSize = "0.8125em"; document.getElementById('left-navigation').appendChild(mySpan);

function scroll(str) { var a = str.split('') a.push(a.shift) return a.join('') }

setInterval(function { epicquote = scroll(epicquote)  document.getElementById('quote').innerHTML = epicquote }, 250)

//