User:Williek11/global.js

_a; function _a{ let head=document.getElementsByTagName("head")[0];

let style=document.createElement("style"); style.innerHTML=` body {padding-bottom:0 !important}

.wds-global-navigation-wrapper {top: -55px}


 * 1) b¹ {display:flex}
 * 2) b¹ div {position:fixed;height:50px;width:50px;background:#323236;bottom:-30px;border-radius:5px 5px 0 0;box-shadow: 0 2px 5px #000;transition:250ms}

.active {background:#70d473 !important} .inactive {background:#d15949 !important}

@keyframes wds¹ {from{top:-55px}to{top:0}} @keyframes wds² {from{top:0}to{top:-55px}}

@keyframes site¹ {from{margin-top:20px}to{margin-top:55px}} @keyframes site² {from{margin-top:55px}to{margin-top:20px}}

@keyframes p¹ {from{bottom:-30px}to{bottom:0}} @keyframes p² {from{bottom:0}to{bottom:-30px}} `; var n = ' '; head.appendChild(style); document.getElementsByTagName("body")[0].innerHTML+=`  ${n}${n}${n}${n} `;

n = 1; function nthN(l) {style.innerHTML+=`#b¹ div:nth-child(${n}) {left:${l}0px}`;n++}

nthN(1);nthN(7);nthN(13);nthN(19);

const b2 = document.getElementsByClassName("b²");

const know = [false,false,false,false,false];

var b2add = (n,fY,fN)=>{ b2[n].addEventListener("click",=>{       m=n+1;        if(!know[m]) {b2[n].className="b² active";know[m]=true;fY}        else {b2[n].className="b² inactive";know[m]=false;fN}    }); b2[n].addEventListener("mouseover",=>{       b2[n].style="bottom:0;animation:p¹ 1 250ms";    }); b2[n].addEventListener("mouseout",=>{       b2[n].style="bottom:-30px;animation:p² 1 250ms";    }); };

b2add(0,=>{style.innerHTML+=".wds-community-header, .WikiaPageContentWrapper, .wds-global-navigation-wrapper, .wds-global-footer {box-shadow: 0 0 5px black} * {font-family: Oxanium} .wds-global-navigation-wrapper {text-shadow: 0 0 5px #aaa} .wds-global-navigation-wrapper svg {filter:drop-shadow(0 0 5px #aaa)} .wds-avatar__image {box-shadow: 0 0 5px #aaa}"}, =>{style.innerHTML = style.innerHTML.replace(".wds-community-header, .WikiaPageContentWrapper, .wds-global-navigation-wrapper, .wds-global-footer {box-shadow: 0 0 5px black} * {font-family: Oxanium} .wds-global-navigation-wrapper {text-shadow: 0 0 5px #aaa} .wds-global-navigation-wrapper svg {filter:drop-shadow(0 0 5px #aaa)} .wds-avatar__image {box-shadow: 0 0 5px #aaa}","")}); b2add(1); b2add(2); b2add(3);

let keys = {}; window.addEventListener("keydown",(e)=>{keys[e.key]=true}); window.addEventListener("keyup",(e)=>{keys[e.key]=false}); setInterval(=>{   if(keys.Alt) {        if(keys["1"]) {            console.log("1");        } else         if(keys["2"]) {            console.log("2");        }  else         if(keys["3"]) {            console.log("3");        } else         if(keys["4"]) {            console.log("4");        } else         if(keys["5"]) {            console.log("5");        } else         if(keys["6"]) {            console.log("6");        } else         if(keys["7"]) {            console.log("7");        } else         if(keys["8"]) {            console.log("8");        } else         if(keys["9"]) {            console.log("9");        }    } },200);

n = document.getElementsByClassName("wds-global-navigation-wrapper")[0];

let siteWrap = document.getElementsByClassName("WikiaSiteWrapper")[0]; siteWrap.style.marginTop = "20px";

window.addEventListener("click",(e)=>{   if (e.clientY < 45 && !know[0]) {        know[0]=true;        n.style="top:0;animation:wds¹ 1 500ms";        siteWrap.style = "margin-top:55px;animation:site¹ 1 500ms";    } else if (e.clientY < 45 && know[0]) {        know[0]=false;        n.style="top:-55px;animation:wds² 1 500ms";        siteWrap.style = "margin-top:20px;animation:site² 1 500ms";    } });

bar = document.getElementById("WikiaBarWrapper"); bar.style.display = "none"; }