User:Acme Gamer/common.js

$.when($.ready).then(function{	console.log("hello world!");	//Custom User Tags function newwe{	var value = document.querySelector("#userProfileApp > div > section > div.user-identity-box__info > div > div.user-identity-header__attributes"); //> span:nth-child(4)

//Creating a new Span Element var spanTag = document.createElement("span"); spanTag.classList.add("user-identity-header__tag"); //Creating a new Paragraph Element var pTag = document.createElement("p");

//New Text Element Called Leader var text = document.createTextNode("Leader");

//Appending Text to Paragraph pTag.appendChild(text);

//Appending Paragraph to Div as a child element spanTag.appendChild(pTag);

//Tadaa, you got the answer ^^ value.appendChild(spanTag); } switch (mw.config.values.profileUserName) { case 'Kindnessaj': // JS here will be applied to Kindnessaj-chan's Page newwe; break; case 'Acme Gamer': // JS here will be applied to Acme's Page newwe; break; }

});

// (Sleep/Delay) Function function sleep(ms) { return new Promise(resolve => setTimeout(resolve, ms)); }