User:ArsenalBastion4093/global.js

function a{ var ab = document.querySelectorAll(".user-identity-header__tag") if (ab.length==0) { setTimeout(a,100) } else if ((ab.length==1) && (ab[0].innerHTML=="Blocked")) { ab[0].innerHTML="Grounded" } } a var sty = document.createElement("style") sty.innerHTML = `.tools{display:inline-block;overflow:hidden;transition:1s;width:0px;height:1.3em;} a:hover .tools{width:initial}` document.body.appendChild(sty) $(".page a[href^='/wiki/']:not([href^='/wiki/Special:']):not([href^='/wiki/Message_Wall:']):not([href*='?']:not([href$='?redirect=no']))").queue(function{	$(this).append(` (  {		var as = this.href.split("/wiki/")		as.shift		as = as.join("/wiki/").split("?")		return as[0] 	})}?action=history">hist |  {		var as = this.href.split("/wiki/")		as.shift		as = as.join("/wiki/").split("?")		return as[0] 	})}?action=edit">edit ) `) }) Object.defineProperties(Array.prototype,{	random_item: {		get{			return this[Math.floor(this.length*Math.random)]		},		set{			throw TypeError("youtu.be/dQw4w9WgXcQ")		}	} }) var Contents = [ {img: "https://i.imgur.com/poCtNRk.gif", link: "//youtu.be/dQw4w9WgXcQ", title: "Rick Astley - Never Gonna Give You Up (Official Music Video)", subtitle: "YouTube"} ] var item = Contents.random_item function b { $(".mcf-card-article__link").queue(function{		if ($(this).find("a").attr("href").split("www.fandom.com").length > 1) {			$(this).find("a").css("background-image",`url("${item.img}")`).attr("href",item.link).html(`${item.title} ${link.subtitle} `)		}	}) setTimeout(b,100) } b