User:Dixtosa/highlightme.js

Hello, you have come here looking for the meaning of the word User:Dixtosa/highlightme.js. In DICTIOUS you will not only get to know all the dictionary meanings for the word User:Dixtosa/highlightme.js, but we will also tell you about its etymology, its characteristics and you will know how to say User:Dixtosa/highlightme.js in singular and plural. Everything you need to know about the word User:Dixtosa/highlightme.js you have here. The definition of the word User:Dixtosa/highlightme.js will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofUser:Dixtosa/highlightme.js, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.
// Real description    : highlights your username in history and adds "show bots" checkbox
// Problems/to-do      : maybe a button somewhere "show my contrib" instead of highlighting
// Dependency          : ES6

if (mw.config.values.wgAction == "history")
{
	$( () => {
		var username = mw.config.values.wgUserName;
		$(".mw-userlink").filter((i, elem) => elem.text == username).css({"color" : "black", "font-weight" : "bold"});
		$("#mw-history-compare .historysubmit").first().after("show bots").after($("<input id='show-bots' type='checkbox' checked/>").change(() => {
			$(".mw-userlink").filter((i, elem) => elem.text.toUpperCase().endsWith("BOT")).parentsUntil("#pagehistory").toggle(); // see talk page;
		}));
	});
}