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

User:Technical 13/Scripts/Gadget-watchlistCleaner.js

In this article, we will address the topic of User:Technical 13/Scripts/Gadget-watchlistCleaner.js from different perspectives and approaches, with the aim of providing a complete and detailed vision of this topic that is so relevant today. We will analyze its impact in various areas, its evolution over time and the challenges it poses in contemporary society. In addition, we will examine the different opinions and positions on the matter, as well as the possible solutions and alternatives that have been proposed to address this issue. With this exhaustive analysis, we aim to offer our readers a broad and enriching overview that allows them to better understand the importance and complexity of User:Technical 13/Scripts/Gadget-watchlistCleaner.js.
if ( mw.config.get( 'wgPageName' ) == "Special:Watchlist" ) {
	if($( 'a:contains("since last visit")' ).length >= 1){
		$( 'a:contains("since last visit")' ).each(function(){
			$(this).html($(this).html().replace( 'since last visit', 'new' ) )
		});
	}
	if( window.screen.width < 640 ){
		$( 'span.mw-watchlist-toollinks' ).html( $( 'span.mw-watchlist-toollinks' ).html().replace( /&nbsp;\| /g, '&thinsp;•&thinsp;' ).replace( '<a href="https://wiki386.com/en/Special:Watchlist" title="Special:Watchlist">View relevant changes</a>', '<a href="https://wiki386.com/en/Special:Watchlist" title="View watchlist (or purge)">V</a>' ).replace( '<a href="https://wiki386.com/en/Special:EditWatchlist" title="Special:EditWatchlist">View and edit watchlist</a>',  '<a href="https://wiki386.com/en/Special:EditWatchlist" title="Edit watchlist">E</a>' ).replace( '<a href="https://wiki386.com/en/Special:EditWatchlist/raw" title="Special:EditWatchlist/raw">Edit raw watchlist</a>',  '<a href="https://wiki386.com/en/Special:EditWatchlist/raw" title="edit Raw watchlist">R</a>' ).replace( '<a href="https://wiki386.com/en/Special:EditWatchlist/clear" title="Special:EditWatchlist/clear">Clear the watchlist</a>',  '<a href="https://wiki386.com/en/Special:EditWatchlist/clear" title="Delete your watchlist" style="font-size: smaller; color: #F00;">D</a>' ) );
		var wlCount = $( '#mw-content-text' ).find( 'p b' ).text();// Get the count of pages on watchlist
		$( 'input' ).val( ' — Mark all ' + wlCount + ' watchlisted pages as visited. — ' );// Update button
		$( '#mw-content-text' ).find( 'p b' ).closest( 'p' ).remove();// Remove now obsolete sentence
		$( 'span#mw-wlheader-showupdated' ).remove();// Remove notice that all changed are bold
		$( 'form#mw-watchlist-form' ).remove();// Remove the controls for changing how the page is displayed
	}

/* Code to temporarily disable the "Mark all as read" button.  Comment this code out when not needed for testing. */
	$( 'input' ).val( $( 'input' ).val() + ' — temporarily disabled' ).attr( 'disabled','disabled' );
	$('input').after('<input type="button" id="enable-ma" onClick="$(\'input\').removeAttr(\'disabled\'); $(\'input#enable-ma\').remove();" value="← Enable the mark all button" />');
}



/* Start working on condensing each row to new posts or last posts without expanding when using enhanced recent changes

var newEdits = ;
$('table.mw-enhanced-rc').each(function () {
    newEdits = $(this).find('span.mw-title').closest('td').find('a:nth-child(3)').text().match(/(\d)/);
    if (newEdits !== null) {
        newEdits = parseInt(thisRowsNewEdits.replace(/,/g,''), 10);
    } else {
        newEdits = parseInt(0, 10);
    }
    for(var i = 0; i <= newEdits; i++){
// Just got to find the right element...
        console.log('%o', $(this).find('td.mw-enhanced-rc-nested a.mw-userlink:nth-child(3)').text());
    }
    newEdits = ;
});

/* Pagenames: *//*
$('table.mw-enhanced-rc').each(function(){
	console.log("%o", 
		$(this).find('span.mw-title').text()//;
	);
});

*/