<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://70.231.62.181/index.php?action=history&amp;feed=atom&amp;title=MyWiki%3AWikiProject_User_scripts%2FScripts%2FShow_recent_comments</id>
	<title>MyWiki:WikiProject User scripts/Scripts/Show recent comments - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://70.231.62.181/index.php?action=history&amp;feed=atom&amp;title=MyWiki%3AWikiProject_User_scripts%2FScripts%2FShow_recent_comments"/>
	<link rel="alternate" type="text/html" href="http://70.231.62.181/index.php?title=MyWiki:WikiProject_User_scripts/Scripts/Show_recent_comments&amp;action=history"/>
	<updated>2026-04-22T13:01:43Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>http://70.231.62.181/index.php?title=MyWiki:WikiProject_User_scripts/Scripts/Show_recent_comments&amp;diff=8249958&amp;oldid=prev</id>
		<title>imported&gt;Legobot: Bot: Fixing lint errors, replacing obsolete HTML tags: &lt;font&gt; (27x)</title>
		<link rel="alternate" type="text/html" href="http://70.231.62.181/index.php?title=MyWiki:WikiProject_User_scripts/Scripts/Show_recent_comments&amp;diff=8249958&amp;oldid=prev"/>
		<updated>2023-03-20T06:59:28Z</updated>

		<summary type="html">&lt;p&gt;Bot: &lt;a href=&quot;/index.php/User:Legobot/Lint_fixes&quot; title=&quot;User:Legobot/Lint fixes&quot;&gt;Fixing lint errors&lt;/a&gt;, replacing &lt;a href=&quot;https://www.mediawiki.org/wiki/Help:Lint_errors/obsolete-tag&quot; class=&quot;extiw&quot; title=&quot;mw:Help:Lint errors/obsolete-tag&quot;&gt;obsolete HTML tags&lt;/a&gt;: &amp;lt;font&amp;gt; (27x)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
This will eventually allow people to hide discussions on talk pages (or the VP) that occurred before a given date.  It is in semi-complete form below.&lt;br /&gt;
*It needs:&lt;br /&gt;
**An interface to set the &amp;#039;&amp;#039;uptodate&amp;#039;&amp;#039;.&lt;br /&gt;
**A way to identify sections, rather than just paragraphs, so whole sections that have been updated can be shown, rather than just the paragraphs that have been updated.&lt;br /&gt;
**A option to show, rather than hide, childNodes that have no dates in them.&lt;br /&gt;
**Bells, whistles and gongs, of course!&lt;br /&gt;
Please improve, modify, suggest, critique, etc.  Thanks! [[User:JesseW/sig|JesseW]] 09:09, 31 August 2005 (UTC)&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 uptodate=&amp;lt;span style=&amp;quot;color: blue;&amp;quot;&amp;gt;new&amp;lt;/span&amp;gt; Date(&amp;lt;span style=&amp;quot;color: brown;&amp;quot;&amp;gt;&amp;quot;Aug 26 2005&amp;quot;&amp;lt;/span&amp;gt;); &amp;lt;span style=&amp;quot;color: green;&amp;quot;&amp;gt;//This is the date which things need to be after to show up.&lt;br /&gt;
 &amp;lt;/span&amp;gt;tokeep=&amp;lt;span style=&amp;quot;color: blue;&amp;quot;&amp;gt;new&amp;lt;/span&amp;gt; Array(); &amp;lt;span style=&amp;quot;color: green;&amp;quot;&amp;gt;//The array that stores the info about which pieces to keep.&lt;br /&gt;
 &amp;lt;/span&amp;gt;bc=document.getElementById(&amp;lt;span style=&amp;quot;color: brown;&amp;quot;&amp;gt;&amp;quot;bodyContent&amp;quot;&amp;lt;/span&amp;gt;); &amp;lt;span style=&amp;quot;color: green;&amp;quot;&amp;gt;//Shorthand&lt;br /&gt;
 &amp;lt;/span&amp;gt;z=bc.childNodes; &amp;lt;span style=&amp;quot;color: green;&amp;quot;&amp;gt;//Shorthand&lt;br /&gt;
 &amp;lt;/span&amp;gt;&amp;lt;span style=&amp;quot;color: blue;&amp;quot;&amp;gt;for&amp;lt;/span&amp;gt; (x=0;x&amp;lt;z.length;x++) { &amp;lt;span style=&amp;quot;color: green;&amp;quot;&amp;gt;//Go through each childNode of bodyContent&lt;br /&gt;
 &amp;lt;/span&amp;gt;  tokeep[x]=z[x]; &amp;lt;span style=&amp;quot;color: green;&amp;quot;&amp;gt;//Put the node into tokeep (if kept, this will be later be replaced by true.)&lt;br /&gt;
 &amp;lt;/span&amp;gt;  &amp;lt;span style=&amp;quot;color: blue;&amp;quot;&amp;gt;if&amp;lt;/span&amp;gt; (z[x].textContent) { &amp;lt;span style=&amp;quot;color: green;&amp;quot;&amp;gt;//Some things don&amp;#039;t have textContent&lt;br /&gt;
 &amp;lt;/span&amp;gt;    &amp;lt;span style=&amp;quot;color: green;&amp;quot;&amp;gt;//This matches the signature date format. (Odd other formats are not yet handled.)&lt;br /&gt;
 &amp;lt;/span&amp;gt;    q=z[x].textContent.match(/[0-9]+:[0-9]+, [0-9]+ [A-Z][a-z]+ [0-9]+ [(]UTC[)]/);&lt;br /&gt;
    &amp;lt;span style=&amp;quot;color: blue;&amp;quot;&amp;gt;if&amp;lt;/span&amp;gt; (q) { &amp;lt;span style=&amp;quot;color: green;&amp;quot;&amp;gt;//Some things don&amp;#039;t have any dates in them&lt;br /&gt;
 &amp;lt;/span&amp;gt;      &amp;lt;span style=&amp;quot;color: green;&amp;quot;&amp;gt;//This turns it into a Date object(it needs to be reformatted for the sake of the parser)&lt;br /&gt;
 &amp;lt;/span&amp;gt;      q=&amp;lt;span style=&amp;quot;color: blue;&amp;quot;&amp;gt;new&amp;lt;/span&amp;gt; Date(String(q).replace(/(.+), (.+) [(]UTC[)]/, &amp;lt;span style=&amp;quot;color: brown;&amp;quot;&amp;gt;&amp;quot;$2 $1 GMT&amp;quot;&amp;lt;/span&amp;gt;));&lt;br /&gt;
      &amp;lt;span style=&amp;quot;color: blue;&amp;quot;&amp;gt;if&amp;lt;/span&amp;gt; (q&amp;gt;uptodate) { &amp;lt;span style=&amp;quot;color: green;&amp;quot;&amp;gt;//Is it after uptodate?&lt;br /&gt;
 &amp;lt;/span&amp;gt;        tokeep[x]=&amp;lt;span style=&amp;quot;color: blue;&amp;quot;&amp;gt;true&amp;lt;/span&amp;gt;  &amp;lt;span style=&amp;quot;color: green;&amp;quot;&amp;gt;//Then keep it.&lt;br /&gt;
 &amp;lt;/span&amp;gt;      }}}};&lt;br /&gt;
 &amp;lt;span style=&amp;quot;color: blue;&amp;quot;&amp;gt;for&amp;lt;/span&amp;gt; (x=0;x&amp;lt;tokeep.length;x++) { &amp;lt;span style=&amp;quot;color: green;&amp;quot;&amp;gt;//Go through tokeep and do the removals.&lt;br /&gt;
 &amp;lt;/span&amp;gt;  &amp;lt;span style=&amp;quot;color: blue;&amp;quot;&amp;gt;if&amp;lt;/span&amp;gt; (tokeep[x]!=&amp;lt;span style=&amp;quot;color: blue;&amp;quot;&amp;gt;true&amp;lt;/span&amp;gt;) {&lt;br /&gt;
    bc.removeChild(tokeep[x])&lt;br /&gt;
  }}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;noinclude&amp;gt;&lt;br /&gt;
Colorized with http://blogs.applibase.net/prasad/downloads/jscolorizer/jscolorizer.html, pre tags removed, spaces added at the beginning of every line.&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Legobot</name></author>
	</entry>
</feed>