User:Starchamelix/vector.js

var titlep; if(!!document.getElementById("Welcome_to_Wikipedia")){ titlep = document.getElementById("Welcome_to_Wikipedia"); titlep.innerHTML = "Welcome to Shrek Encyclopedia"; document.title = "Shrek Encyclopedia"; }else{

var title = document.title; var titlel = title.length; title = title.substring(0, titlel-9); title += 'Shrek Encyclopedia'; document.title = title; } var logo = document.getElementById("p-logo"); logo.innerHTML = ""; logo.innerHTML = '';

document.getElementById('pt-userpage').innerHTML = ' My Stuff '; document.addEventListener('click', function (event){ console.log(event.clientX, event.clientY) })

function click(x, y, element){ var click = new MouseEvent("click", {   "view": window,    "bubbles": true,    "cancelable": false,    "clientX":x,    "clientY":y }); element.dispatchEvent(click); } setTimeout(function{

click(2,2,Array.from(document.getElementById("p-lang").getElementsByClassName("uls-settings-trigger"))[0]) console.log(document.getElementById("p-lang").innerHTML) // wait(200); setTimeout(function{ click(2, 2, Array.from(document.getElementsByClassName("uls-more-languages cdx-button webfonts-changed"))[0]) // alert(document.getElementById("p-lang").innerHTML) setTimeout(function{ console.log(Array.from(document.getElementsByClassName("grid uls-menu selector-left uls-medium callout callout--languageselection"))[0].innerHTML) Array.from(document.getElementsByClassName("vector-menu-content-list"))[0].innerHTML += ("Hello!") }, 2000) }, 2000) console.log("Hello!") }, 100)

// var panel = document.getElementById("mw-panel"); // panel.innerHTML = panel.innerHTML+`

//  // 	Languages // 	 // 		 // 		  // 	 // // `;