_ _    _ _____  ___   __                       
 __      _(_) | _(_)___ / ( _ ) / /_   ___ ___  _ __ ___  
 \ \ /\ / / | |/ / | |_ \ / _ \| '_ \ / __/ _ \| '_ ` _ \ 
  \ V  V /| |   <| |___) | (_) | (_) | (_| (_) | | | | | |
   \_/\_/ |_|_|\_\_|____/ \___/ \___(_)___\___/|_| |_| |_|

User:Bellezzasolo/Scripts/adminhighlighter.js

This article will address the topic of User:Bellezzasolo/Scripts/adminhighlighter.js from different perspectives, with the aim of delving into its importance and relevance today. Its impact in different areas will be analyzed, as well as its evolution over time. Recent studies and research will be presented that shed light on User:Bellezzasolo/Scripts/adminhighlighter.js and its implications for society. Likewise, possible future implications will be discussed and new areas of study related to User:Bellezzasolo/Scripts/adminhighlighter.js will be explored. This article seeks to provide a comprehensive view of User:Bellezzasolo/Scripts/adminhighlighter.js and promote debate about its meaning and significance in the contemporary world.
//<nowiki>
/**
 * User highlighter 2.0
 * ---------------------
 * A jQuery/mediawiki-heavy rewrite of ]
 * 
 * This script highlights links to admins' userpages or talkpages in bodyContent
 * (that is, everything but the tabs, personal links at the top of the screen and sidebar)
 * by giving them a cyan background.
 *
 * See ] for more details.
 *
 * @author theopolisme
 * @author Bellezzasolo
 */
(function($, mw){
;mw.hook('wikipage.content').add(function(){
	var ecdata, pcdata, mvdata, tpdata, addata;
	$.when(
	$.getJSON(mw.config.get('wgScriptPath')+'/index.php?action=raw&ctype=application/json&title=User:Bellezzasolo Bot/userhighlighter.js/excon.js', function(data){
		ecdata = data;
	}),
	$.getJSON(mw.config.get('wgScriptPath')+'/index.php?action=raw&ctype=application/json&title=User:Bellezzasolo Bot/userhighlighter.js/pcusr.js', function(data){
		pcdata = data;
	}),
	$.getJSON(mw.config.get('wgScriptPath')+'/index.php?action=raw&ctype=application/json&title=User:Bellezzasolo Bot/userhighlighter.js/pgmvr.js', function(data){
		mvdata = data;
	}),
	$.getJSON(mw.config.get('wgScriptPath')+'/index.php?action=raw&ctype=application/json&title=User:Bellezzasolo Bot/userhighlighter.js/temop.js', function(data){
		tpdata = data;
	}),
	$.getJSON(mw.config.get('wgScriptPath')+'/index.php?action=raw&ctype=application/json&title=User:AmoryBot/crathighlighter.js/sysop.json', function(data){
		addata = data;
	}),
	$.getJSON(mw.config.get('wgScriptPath')+'/index.php?action=raw&ctype=application/json&title=User:Bellezzasolo Bot/userhighlighter.js/ptusr.js', function(data){
		ptdata = data;
	})
	).then(function() {
	ADMINHIGHLIGHT_EXTLINKS = window.ADMINHIGHLIGHT_EXTLINKS || false;
	ADMINHIGHLIGHT_NAMESPACES = ;
	mw.loader.using(, function() {
		mw.util.addCSS(".userhighlighter_sysop.userhighlighter_sysop {background-color: #ffee88 !important}");
		mw.util.addCSS(".userhighlighter_temop.userhighlighter_temop {background-color: #ffcccc !important}");
		mw.util.addCSS(".userhighlighter_pgmvr.userhighlighter_pgmvr {background-color: #b3e8ab !important}");
		mw.util.addCSS(".userhighlighter_ptusr.userhighlighter_ptusr {background-color: #c4f2ff !important}");
		mw.util.addCSS(".userhighlighter_pcusr.userhighlighter_pcusr {background-color: #d4d4d4 !important}");
		mw.util.addCSS(".userhighlighter_excon.userhighlighter_excon {background-color: #ccccff !important}");
		$('#article a, #bodyContent a, #mw_contentholder a').each(function(index,linkraw){
			try {
				var link = $(linkraw);
				var url = link.attr('href');
				if (!url || url.charAt(0) === '#') return; // Skip <a> elements that aren't actually links; skip anchors
				if (url.lastIndexOf("http://", 0) != 0 && url.lastIndexOf("https://", 0) != 0 && url.lastIndexOf("/", 0) != 0) return; //require http(s) links, avoid "javascript:..." etc. which mw.Uri does not support
				var uri = new mw.Uri(url);
				if (!ADMINHIGHLIGHT_EXTLINKS && !$.isEmptyObject(uri.query)) return; // Skip links with query strings if highlighting external links is disabled
				if (uri.host == 'en.wikipedia.org') {
					var mwtitle = new mw.Title(mw.util.getParamValue('title',url) || decodeURIComponent(uri.path.slice(6))); // Try to get the title parameter of URL; if not available, remove 'https://wiki386.com/en/' and use that
					if ($.inArray(mwtitle.getNamespaceId(), ADMINHIGHLIGHT_NAMESPACES)>=0) {
						var user = mwtitle.getMain().replace(/_/g," ");
						if (mwtitle.getNamespaceId() === -1) user = user.replace('Contributions/',''); // For special page "Contributions/<username>"
						if (addata == 1) {
							link.attr("class", "userhighlighter_sysop"); // Override the above color by using `a.userhighlighter_sysop.userhighlighter_sysop {background-color: COLOR !important}`
						}
						else if(tpdata == 1) {
							link.attr("class", "userhighlighter_temop"); // Override the above color by using `a.userhighlighter_temop.userhighlighter_temop {background-color: COLOR !important}`
						}
						else if(mvdata == 1) {
							link.attr("class", "userhighlighter_pgmvr"); // Override the above color by using `a.userhighlighter_pgmvr.userhighlighter_pgmvr {background-color: COLOR !important}`
						}
						else if(ptdata == 1) {
							link.attr("class", "userhighlighter_ptusr"); // Override the above color by using `a.userhighlighter_ptusr.userhighlighter_ptusr {background-color: COLOR !important}`
						}
						else if(pcdata == 1) {
							link.attr("class", "userhighlighter_pcusr"); // Override the above color by using `a.userhighlighter_pcusr.userhighlighter_pcusr {background-color: COLOR !important}`
						}
						else if(ecdata == 1) {
							link.attr("class", "userhighlighter_excon"); // Override the above color by using `a.userhighlighter_excon.userhighlighter_excon {background-color: COLOR !important}`
						}
					}
				}
			} catch (e) {
				// Sometimes we will run into unparsable links, so just log these and move on
				window.console && console.error('Admin highlighter recoverable error',e.message);
			}
		});
	});
	});
}); // mw.hook
}(jQuery, mediaWiki));
//</nowiki>