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

User:Writ Keeper/Scripts/liveWatchlist.js

The importance of User:Writ Keeper/Scripts/liveWatchlist.js in today's society is undeniable. Every day, User:Writ Keeper/Scripts/liveWatchlist.js becomes a topic of debate and reflection in different areas, whether in politics, science, entertainment or culture. User:Writ Keeper/Scripts/liveWatchlist.js awakens the interest and curiosity of people, who seek to understand its impact on their lives and the world around them. In this article, we will explore the various aspects related to User:Writ Keeper/Scripts/liveWatchlist.js, from its origin to its evolution today. We will analyze its influence on our daily decisions, as well as on the development of society as a whole.
watchlistLastRetrieved;
apiProps = {"action":"query","list":"watchlist","wlprop":"ids|title|user|comment|timestamp|sizes","wlallrev":"true"}
watchlistUpdateClass= "watchlistUpdate";

function refreshWatchlist()
{
	
}
function populateWatchlist()
{
	if($("#mw-liveWatchlistUL").length > 0)
	{
		$.post("\w\api.php",apiProps, function(response)
		{
			
			watchlistLastRetrieved = new Date(Date.now()).toISOString();
		});
	}
}
function renderWatchlistEntry(var watchListJSON)
{
	var resultString = "";
	var editTime = new Date(watchlistJSON.timestamp);
	var editDelta = watchlistJSON.newlen - watchlistJSON.oldlen;
	if(watchlistJSON.type === "edit")
	{
		resultString = '<li class="mw-changeslist-liu ">(<a href="/w/index.php?title=' + watchlistJSON.title + '&curid=' + watchlistJSON.pageid + '&diff=' + watchlistJSON.revid + '&oldid=' + watchlistJSON.old_revid + '" class="mw-changeslist-diff nonimage userlink" title="' + watchlistJSON.title + '">diff</a> | <a href="/w/index.php?title=' + watchlistJSON.title + '&curid=' + watchlistJSON.pageid + '&action=history" class="mw-changeslist-history nonimage userlink" title="' + watchlistJSON.title + '">hist</a>) <span class="mw-changeslist-separator">. .</span><a href="#" id="' + watchlistJSON.revid + '" class=" nonimage" title="#"><b><span style="color:black;">  </span></b></a><span class="mw-title"><a href="https://wiki386.com/en/' + watchlistJSON.title + '" class="mw-changeslist-title nonimage userlink" title="' + watchlistJSON.title + '">' + watchlistJSON.title + '; </a></span>‎; <span class="mw-changeslist-date">' + editTime.getHours() + ':' + editTime.getMinutes() + '</span><span class="mw-changeslist-separator">. .</span><span dir="ltr" class="mw-plusminus-' + (editDelta >= 0 ? 'pos' : 'neg') + '" title="' + watchlistJSON.newLen + '" bytes after change">(' + (editDelta >= 0 ? '+' : '' + editDelta) + ')</span>‎  <span class="mw-changeslist-separator">. .</span> ‎<a href="https://wiki386.com/en/User:' + watchlistJSON.user + '" class="mw-redirect mw-userlink nonimage userlink redirect" title="' + watchlistJSON.title + '"><bdi>' + watchlistJSON.user + '</bdi></a><span class="mw-usertoollinks">(<a href="https://wiki386.com/en/' + watchlistJSON.title + '" class="mw-usertoollinks-talk nonimage userlink" title="' + watchlistJSON.title + '">talk</a> | <a href="https://wiki386.com/en/Special:Contributions/' + watchlistJSON.user + '" class="mw-usertoollinks-contribs nonimage userlink" title="Special:Contributions/' + watchlistJSON.user + '">contribs</a> |<a href="https://wiki386.com/en/Special:Block/' + watchlistJSON.user + '" class="mw-usertoollinks-block nonimage" title="Special:Block/' + watchlistJSON.user + '">block</a>)</span>‎ <span class="comment">(' + watchlistJSON.comment + ')</span></li>';
	}
	else if (watchlistJSON.type === "new")
	{
		resultString = '<li class="mw-changeslist-liu mw-changeslist-src-mw-new">(diff&nbsp;| <a href="/w/index.php?title=' + watchlistJSON.title + '&curid=' + watchlistJSON.pageid + '&action=history" class="mw-changeslist-history nonimage" title="' + watchlistJSON.title + '">hist</a>) <span class="mw-changeslist-separator">. .</span><abbr class="newpage" title="This edit created a new page">N</abbr><span class="mw-title"><a href="https://wiki386.com/en/' + watchlistJSON.title + '" class="mw-changeslist-title nonimage" title="' + watchlistJSON.title + '">' + watchlistJSON.title + '; </a></span>‎; <span class="mw-changeslist-date">' + editTime.getHours() + ':' + editTime.getMinutes() + '</span><span class="mw-changeslist-separator">. .</span><span dir="ltr" class="mw-plusminus-pos" title="' + watchlistJSON.newlen + ' bytes after change">(+' + watchlistJSON.newlen + ')</span>‎  <span class="mw-changeslist-separator">. .</span> ‎<a href="https://wiki386.com/en/User:' + watchlistJSON.user + '" class="mw-userlink nonimage userlink protection-edit-sysop-indef protection-edit-sysop protection-move-sysop-indef protection-move-sysop" title="User:' + watchlistJSON.user + '"><bdi>' + watchlistJSON.user + '</bdi></a><span class="mw-usertoollinks">(<a href="https://wiki386.com/en/User_talk:' + watchlistJSON.user + '" class="mw-usertoollinks-talk nonimage userlink" title="User talk:' + watchlistJSON.user + '">talk</a>&nbsp;| <a href="https://wiki386.com/en/Special:Contributions/' + watchlistJSON.user + '" class="mw-usertoollinks-contribs nonimage userlink" title="Special:Contributions/' + watchlistJSON.user + '">contribs</a>&nbsp;| <a href="https://wiki386.com/en/Special:Block/' + watchlistJSON.user + '" class="mw-usertoollinks-block nonimage" title="Special:Block/' + watchlistJSON.user + '">block</a>)</span>‎ <span class="comment">(' + watchlistJSON.comment + ')</span></li>';
	}
	else if (watchlistJSON.type === "log")
	{
		resultString = '<li class="mw-changeslist-liu mw-changeslist-src-mw-log">(log); <span class="mw-changeslist-date">' + editTime.getHours() + ':' + editTime.getMinutes() + '</span><span class="mw-changeslist-separator">. .</span> <a href="https://wiki386.com/en/User:' + watchlistJSON.user + '" class="mw-userlink nonimage userlink protection-edit-sysop-indef protection-edit-sysop protection-move-sysop-indef protection-move-sysop" title="User:' + watchlistJSON.user + '"><bdi>' + watchlistJSON.user + '</bdi></a><span class="mw-usertoollinks">(<a href="https://wiki386.com/en/User_talk:' + watchlistJSON.user + '" class="mw-usertoollinks-talk nonimage userlink" title="User talk:' + watchlistJSON.user + '">talk</a>&nbsp;| <a href="https://wiki386.com/en/Special:Contributions/' + watchlistJSON.user + '" class="mw-usertoollinks-contribs nonimage userlink" title="Special:Contributions/' + watchlistJSON.user + '">contribs</a>&nbsp;| <a href="https://wiki386.com/en/Special:Block/' + watchlistJSON.user + '" class="mw-usertoollinks-block nonimage" title="Special:Block/' + watchlistJSON.user + '">block</a>)</span> did something to <a href="https://wiki386.com/en/' + watchlistJSON.title + '" class="mw-userlink nonimage userlink" ><bdi>' + watchlistJSON.title + '</bdi></a>with the comment: "‎<span class="comment">' + watchlistJSON.comment + '</span>"</li>';
	}
	return resultString;
}