<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://shmups.wiki/index.php?action=history&amp;feed=atom&amp;title=User%3A1ccsDontMatter%2FCode</id>
	<title>User:1ccsDontMatter/Code - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://shmups.wiki/index.php?action=history&amp;feed=atom&amp;title=User%3A1ccsDontMatter%2FCode"/>
	<link rel="alternate" type="text/html" href="https://shmups.wiki/index.php?title=User:1ccsDontMatter/Code&amp;action=history"/>
	<updated>2026-04-19T12:00:47Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://shmups.wiki/index.php?title=User:1ccsDontMatter/Code&amp;diff=3423&amp;oldid=prev</id>
		<title>1ccsDontMatter: Created page with &quot;== Hall of records variablizer == Put this in a javascript console while on the [https://shmups.wiki/index.php?title=STG_Hall_of_Records&amp;action=edit|the hall of records edit s...&quot;</title>
		<link rel="alternate" type="text/html" href="https://shmups.wiki/index.php?title=User:1ccsDontMatter/Code&amp;diff=3423&amp;oldid=prev"/>
		<updated>2020-07-31T17:40:02Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Hall of records variablizer == Put this in a javascript console while on the [https://shmups.wiki/index.php?title=STG_Hall_of_Records&amp;amp;action=edit|the hall of records edit s...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Hall of records variablizer ==&lt;br /&gt;
Put this in a javascript console while on the [https://shmups.wiki/index.php?title=STG_Hall_of_Records&amp;amp;action=edit|the hall of records edit screen] to turn any numbers greater than 4 digits that are somewhere in a table into variables in ascending letter order&lt;br /&gt;
&lt;br /&gt;
 var gText = $(&amp;quot;textarea&amp;quot;)[0].value;&lt;br /&gt;
 var gAlphabet = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'];&lt;br /&gt;
 var scoreIndex;&lt;br /&gt;
 &lt;br /&gt;
 var newText = gText.replace(/(\|})|(\|+|!+) (?![a-z])([0-9,]+) ?(?=\||!)/gi, replacer);&lt;br /&gt;
 $(&amp;quot;textarea&amp;quot;)[0].value = newText;&lt;br /&gt;
 &lt;br /&gt;
 function replacer(match, p1, p2, p3, offset, string, groups) {&lt;br /&gt;
  if(p1) {&lt;br /&gt;
    scoreIndex = 0;&lt;br /&gt;
    return &amp;quot;|}&amp;quot;&lt;br /&gt;
  }&lt;br /&gt;
  else {&lt;br /&gt;
    if(p3.length &amp;lt; 5)&lt;br /&gt;
      return p2 + p3;&lt;br /&gt;
    return p2 + &amp;quot; {{v|&amp;quot; + getNextLetter() + &amp;quot;1|&amp;quot; + p3 + &amp;quot;}} &amp;quot;;&lt;br /&gt;
  }&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 function getNextLetter() {&lt;br /&gt;
  var ret = gAlphabet[scoreIndex];&lt;br /&gt;
  scoreIndex++;&lt;br /&gt;
  return ret;&lt;br /&gt;
 }&lt;/div&gt;</summary>
		<author><name>1ccsDontMatter</name></author>
		
	</entry>
</feed>