User:AlexTech01/vector-2022.js

/*document.getElementsByClassName("mw-logo")[0].addEventListener("mouseover", function {	document.getElementsByClassName("mw-logo-icon")[0].src = "https://upload.wikimedia.org/wikipedia/commons/f/fa/Apple_logo_black.svg"; });

document.getElementsByClassName("mw-logo")[0].addEventListener("mouseout", function {	document.getElementsByClassName("mw-logo-icon")[0].src = "/static/images/icons/wikipedia.png"; });*/

//document.getElementsByClassName("cdx-text-input__input")[0].placeholder = "Search Wikipedia articles about Steve Jobs";

/*var randomQuoteSet = false; document.getElementsByClassName("cdx-text-input__input")[0].placeholder = "Hover over me for a random quote!"; document.getElementsByClassName("cdx-text-input__input")[0].addEventListener("mouseover", function {	if (!randomQuoteSet) {		randomQuoteSet = true;		var randomQuoteRequest = new XMLHttpRequest;		randomQuoteRequest.open("GET", "https://api.quotable.io/random", true);		randomQuoteRequest.addEventListener("load", function { const randomQuoteObject = JSON.parse(randomQuoteRequest.responseText); if (randomQuoteObject && randomQuoteObject["content"]) { document.getElementsByClassName("cdx-text-input__input")[0].placeholder = randomQuoteObject["content"]; }		});		randomQuoteRequest.send;	} });*/