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

User:Ale jrb/Scripts/tophide.js

Today, User:Ale jrb/Scripts/tophide.js has become a topic of great relevance and interest to a wide spectrum of society. From its impact on the economy to its influence on political decisions, User:Ale jrb/Scripts/tophide.js has positioned itself as a central topic in current conversations and discussions. In order to better understand this phenomenon, it is important to analyze its different dimensions and consequences. In this article, we will explore in depth the various facets of User:Ale jrb/Scripts/tophide.js and how they have shaped and impacted our environment.
	
	function topHideMain() {
		var me = this;

		this.init = function () {
			if ( ( wgAction == 'view' ) && ( wgPageName == 'Special:Contributions' ) ) {
				var bodyContent = document.getElementById ( 'bodyContent' );
				regTest = /class="mw-numlink">500<\/a>\)<\/p><ul>/ig;

				if ( typeof topHideDefault === "undefined" ) topHideDefault = 'hide';
				if ( topHideDefault == 'hide' ) {
					bodyContent.innerHTML = bodyContent.innerHTML.replace ( regTest, "class=\"mw-numlink\">500</a>) (<span id=\"tophider\"><a href=\"#\" onclick=\"topHide.show(); return false;\">show top edits</a></span>)</p><ul>" );
					topHide.hide ();
				} else {
					bodyContent.innerHTML = bodyContent.innerHTML.replace ( regTest, "class=\"mw-numlink\">500</a>) (<span id=\"tophider\"><a href=\"#\" onclick=\"topHide.hide(); return false;\">hide top edits</a></span>)</p><ul>" );
				}

				wa_popups ( 'refresh' );
			}
		}
		
		this.hide = function () {
			if ( ( wgAction == 'view' ) && ( wgPageName == 'Special:Contributions' ) ) {
				document.getElementById ( 'tophider' ).innerHTML = '<a href="#" onclick="topHide.show(); return false;">show top edits</a>';

				var bodyContent = document.getElementById ( 'bodyContent' );
				regTest = /(<li class="">(?!<\/li)(?:.+?)<span class="mw-uctop">\(top\)<\/span>(?:.+?)<\/li>)/ig;
				bodyContent.innerHTML = bodyContent.innerHTML.replace ( regTest, "<!--tophidehide$1endtophide-->" );
				wa_popups ( 'refresh' );
			}
			return false;
		}

		this.show = function () {
			if ( ( wgAction == 'view' ) && ( wgPageName == 'Special:Contributions' ) ) {
				document.getElementById ( 'tophider' ).innerHTML = '<a href="#" onclick="topHide.hide(); return false;">hide top edits</a>';

				var bodyContent = document.getElementById ( 'bodyContent' );
				regTest = /<!--tophidehide(.+?)endtophide-->/ig;
				bodyContent.innerHTML = bodyContent.innerHTML.replace ( regTest, "$1" );
				wa_popups ( 'refresh' );
			}
			return false;
		}
	}
	
	importScript ( 'User:Ale_jrb/Scripts/waLib2.js' );
	var topHide = new topHideMain ();
	hookEvent ( 'load', topHide.init );