<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.parallelmc.org/w/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3ACommon.js</id>
	<title>MediaWiki:Common.js - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.parallelmc.org/w/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3ACommon.js"/>
	<link rel="alternate" type="text/html" href="https://wiki.parallelmc.org/w/index.php?title=MediaWiki:Common.js&amp;action=history"/>
	<updated>2026-04-29T03:06:31Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.5</generator>
	<entry>
		<id>https://wiki.parallelmc.org/w/index.php?title=MediaWiki:Common.js&amp;diff=10845&amp;oldid=prev</id>
		<title>Diamondback88: Add support for custom hex code colors</title>
		<link rel="alternate" type="text/html" href="https://wiki.parallelmc.org/w/index.php?title=MediaWiki:Common.js&amp;diff=10845&amp;oldid=prev"/>
		<updated>2024-11-05T00:50:19Z</updated>

		<summary type="html">&lt;p&gt;Add support for custom hex code colors&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 02:50, 5 November 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l115&quot;&gt;Line 115:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 115:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			// No title or title only contains formatting codes&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			// No title or title only contains formatting codes&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			if ( title === undefined || title !== &amp;#039;&amp;#039; &amp;amp;&amp;amp; title.replace( /&amp;amp;([0-9a-&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;fl&lt;/del&gt;-&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;or&lt;/del&gt;])/g, &amp;#039;&amp;#039; ) === &amp;#039;&amp;#039; ) {&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			if ( title === undefined || title !== &amp;#039;&amp;#039; &amp;amp;&amp;amp; title.replace( /&amp;amp;([0-9a-&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;jl&lt;/ins&gt;-&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;qs-vyzr]|#[0-9a-fA-F]{6}|\$[0-9a-fA-F&lt;/ins&gt;]&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{3}&lt;/ins&gt;)/g, &amp;#039;&amp;#039; ) === &amp;#039;&amp;#039; ) {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;				// Find deepest child title&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;				// Find deepest child title&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;				var childElem = $elem[0], childTitle;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;				var childElem = $elem[0], childTitle;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l158&quot;&gt;Line 158:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 158:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			// Add classes for minecraft formatting codes&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			// Add classes for minecraft formatting codes&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			while ( content.search( /&amp;amp;[0-9a-&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;fl&lt;/del&gt;-&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;o&lt;/del&gt;]/ ) &amp;gt; -1 ) {&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			while ( content.search( /&amp;amp;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(?:&lt;/ins&gt;[0-9a-&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;jl-qs&lt;/ins&gt;-&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;vyz&lt;/ins&gt;]&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|#[0-9a-fA-F]{6}|\$[0-9a-fA-F]{3})&lt;/ins&gt;/ ) &amp;gt; -1 ) {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;				content = content.replace( /&amp;amp;([0-9a-&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;fl&lt;/del&gt;-&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;o&lt;/del&gt;])(.*?)(&amp;amp;r|$)/g, &amp;#039;&amp;lt;span class=&amp;quot;format-$1&amp;quot;&amp;gt;$2&amp;lt;/span&amp;gt;&amp;amp;r&amp;#039; );&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;				content = content.replace( /&amp;amp;([0-9a-&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;jl&lt;/ins&gt;-&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;qs-vyz&lt;/ins&gt;])(.*?)(&amp;amp;r|$)/g, &amp;#039;&amp;lt;span class=&amp;quot;format-$1&amp;quot;&amp;gt;$2&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/span&amp;gt;&amp;amp;r&amp;#039; );&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;				content = content.replace( /&amp;amp;(?:#([0-9a-fA-F]{6})|\$([0-9a-fA-F]{3}))(.*?)(&amp;amp;r|$)/g, &amp;#039;&amp;lt;span class=&amp;quot;format-custom&amp;quot; style=&amp;quot;color: #$1$2;&amp;quot;&amp;gt;$3&lt;/ins&gt;&amp;lt;/span&amp;gt;&amp;amp;r&amp;#039; );&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			// Remove reset formatting&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;			// Remove reset formatting&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key s1667_MediaWiki:diff::1.12:old-5511:rev-10845 --&gt;
&lt;/table&gt;</summary>
		<author><name>Diamondback88</name></author>
	</entry>
	<entry>
		<id>https://wiki.parallelmc.org/w/index.php?title=MediaWiki:Common.js&amp;diff=5511&amp;oldid=prev</id>
		<title>Diamondback88: Imported functionality from minecraft.wiki</title>
		<link rel="alternate" type="text/html" href="https://wiki.parallelmc.org/w/index.php?title=MediaWiki:Common.js&amp;diff=5511&amp;oldid=prev"/>
		<updated>2023-10-25T02:14:34Z</updated>

		<summary type="html">&lt;p&gt;Imported functionality from minecraft.wiki&lt;/p&gt;
&lt;a href=&quot;https://wiki.parallelmc.org/w/index.php?title=MediaWiki:Common.js&amp;amp;diff=5511&amp;amp;oldid=741&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Diamondback88</name></author>
	</entry>
	<entry>
		<id>https://wiki.parallelmc.org/w/index.php?title=MediaWiki:Common.js&amp;diff=741&amp;oldid=prev</id>
		<title>Diamondback88 at 15:54, 31 May 2022</title>
		<link rel="alternate" type="text/html" href="https://wiki.parallelmc.org/w/index.php?title=MediaWiki:Common.js&amp;diff=741&amp;oldid=prev"/>
		<updated>2022-05-31T15:54:02Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://wiki.parallelmc.org/w/index.php?title=MediaWiki:Common.js&amp;amp;diff=741&amp;amp;oldid=740&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Diamondback88</name></author>
	</entry>
	<entry>
		<id>https://wiki.parallelmc.org/w/index.php?title=MediaWiki:Common.js&amp;diff=740&amp;oldid=prev</id>
		<title>Diamondback88 at 15:53, 31 May 2022</title>
		<link rel="alternate" type="text/html" href="https://wiki.parallelmc.org/w/index.php?title=MediaWiki:Common.js&amp;diff=740&amp;oldid=prev"/>
		<updated>2022-05-31T15:53:40Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://wiki.parallelmc.org/w/index.php?title=MediaWiki:Common.js&amp;amp;diff=740&amp;amp;oldid=95&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Diamondback88</name></author>
	</entry>
	<entry>
		<id>https://wiki.parallelmc.org/w/index.php?title=MediaWiki:Common.js&amp;diff=95&amp;oldid=prev</id>
		<title>Diamondback88: Created page with &quot;/* Any JavaScript here will be loaded for all users on every page load. */  // Even More fancy hovers for recipes $(function () {   // Tooltip only Text   $(&#039;.masterTooltip&#039;).hover(     function () {       // Hide non-JS       $(this).data(&#039;tipText&#039;, $(this).attr(&#039;title&#039;)).removeAttr(&#039;title&#039;);        //Custom Tooltip       var title = $(this).attr(&#039;data-title&#039;);       var lore = $(this).attr(&#039;data-lore&#039;);       var tooltip = &#039;&lt;p class=&quot;tooltip&quot;&gt;&#039; + parseFormatCodes(title...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.parallelmc.org/w/index.php?title=MediaWiki:Common.js&amp;diff=95&amp;oldid=prev"/>
		<updated>2022-05-27T21:13:52Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Any JavaScript here will be loaded for all users on every page load.: &lt;/span&gt;  // Even More fancy hovers for recipes $(function () {   // Tooltip only Text   $(&amp;#039;.masterTooltip&amp;#039;).hover(     function () {       // Hide non-JS       $(this).data(&amp;#039;tipText&amp;#039;, $(this).attr(&amp;#039;title&amp;#039;)).removeAttr(&amp;#039;title&amp;#039;);        //Custom Tooltip       var title = $(this).attr(&amp;#039;data-title&amp;#039;);       var lore = $(this).attr(&amp;#039;data-lore&amp;#039;);       var tooltip = &amp;#039;&amp;lt;p class=&amp;quot;tooltip&amp;quot;&amp;gt;&amp;#039; + parseFormatCodes(title...&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;/* Any JavaScript here will be loaded for all users on every page load. */&lt;br /&gt;
&lt;br /&gt;
// Even More fancy hovers for recipes&lt;br /&gt;
$(function () {&lt;br /&gt;
  // Tooltip only Text&lt;br /&gt;
  $(&amp;#039;.masterTooltip&amp;#039;).hover(&lt;br /&gt;
    function () {&lt;br /&gt;
      // Hide non-JS&lt;br /&gt;
      $(this).data(&amp;#039;tipText&amp;#039;, $(this).attr(&amp;#039;title&amp;#039;)).removeAttr(&amp;#039;title&amp;#039;);&lt;br /&gt;
&lt;br /&gt;
      //Custom Tooltip&lt;br /&gt;
      var title = $(this).attr(&amp;#039;data-title&amp;#039;);&lt;br /&gt;
      var lore = $(this).attr(&amp;#039;data-lore&amp;#039;);&lt;br /&gt;
      var tooltip = &amp;#039;&amp;lt;p class=&amp;quot;tooltip&amp;quot;&amp;gt;&amp;#039; + parseFormatCodes(title);&lt;br /&gt;
      if (lore) tooltip += &amp;#039;&amp;lt;br&amp;gt;&amp;lt;span class=&amp;quot;lore format-5&amp;quot;&amp;gt;&amp;#039; + parseFormatCodes(lore) + &amp;#039;&amp;lt;/span&amp;gt;&amp;#039;;&lt;br /&gt;
      tooltip += &amp;#039;&amp;lt;/p&amp;gt;&amp;#039;;&lt;br /&gt;
      $(tooltip).appendTo(&amp;#039;body&amp;#039;);&lt;br /&gt;
    },&lt;br /&gt;
    function () {&lt;br /&gt;
      // Hover out&lt;br /&gt;
      $(&amp;#039;.tooltip&amp;#039;).remove();&lt;br /&gt;
    }).mousemove(&lt;br /&gt;
      function(e) {&lt;br /&gt;
        var mousex = e.pageX + 20;&lt;br /&gt;
        var mousey = e.pageY - 40;&lt;br /&gt;
        var tooltip = $(&amp;#039;.tooltip&amp;#039;);&lt;br /&gt;
        if (mousex + tooltip.width() &amp;gt;= $(window).width()) mousex -= tooltip.width() + 40;&lt;br /&gt;
        tooltip.css({&lt;br /&gt;
          top: mousey,&lt;br /&gt;
          left: mousex,&lt;br /&gt;
        });&lt;br /&gt;
      });&lt;br /&gt;
  // Hide the stupid empty newlines after crafting grids&lt;br /&gt;
  $(&amp;#039;.crafting + p br:only-child&amp;#039;).parent().hide();&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  //Code For books&lt;br /&gt;
  $(&amp;#039;.pageactive&amp;#039;).each(function (_, page) {&lt;br /&gt;
    setupPage($(page));&lt;br /&gt;
  });&lt;br /&gt;
  $(&amp;#039;.book_leftarrow&amp;#039;).click(function () {&lt;br /&gt;
    setupPage($(this).siblings(&amp;#039;.pageactive&amp;#039;).removeClass(&amp;#039;pageactive&amp;#039;).prev());&lt;br /&gt;
  });&lt;br /&gt;
  $(&amp;#039;.book_rightarrow&amp;#039;).click(function () {&lt;br /&gt;
    setupPage($(this).siblings(&amp;#039;.pageactive&amp;#039;).removeClass(&amp;#039;pageactive&amp;#039;).next());&lt;br /&gt;
  });&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
  //Code for Cycling&lt;br /&gt;
  $(&amp;#039;.cyclist &amp;gt; :not(:first-child)&amp;#039;).hide();&lt;br /&gt;
  setInterval(function() {&lt;br /&gt;
    if (!!$(&amp;#039;.cyclist&amp;#039;).filter(function() { return $(this).is(&amp;quot;:hover&amp;quot;); }).length) return;&lt;br /&gt;
    $(&amp;#039;.cyclist &amp;gt; :not(:hidden)&amp;#039;).hide().each(function() {&lt;br /&gt;
      var elem = $(this);&lt;br /&gt;
      elem.next().show();&lt;br /&gt;
      if (elem.is(&amp;#039;:last-child&amp;#039;)) elem.siblings().first().show();&lt;br /&gt;
    });&lt;br /&gt;
  }, 2000);&lt;br /&gt;
});&lt;br /&gt;
&lt;br /&gt;
function parseFormatCodes (text) {&lt;br /&gt;
  var spans = 0;&lt;br /&gt;
  var res = &amp;#039;&amp;#039;;&lt;br /&gt;
  for (var i = 0; i &amp;lt; text.length; i++) {&lt;br /&gt;
    if (text[i] == &amp;#039;\\&amp;#039;) {&lt;br /&gt;
      res += text[i+1];&lt;br /&gt;
      i++;&lt;br /&gt;
    } else if (/&amp;amp;[0-9a-fl-o]/.test(text.substring(i,i+2))) {&lt;br /&gt;
      res += &amp;#039;&amp;lt;span class=&amp;quot;format-&amp;#039; + text[i+1] + &amp;#039;&amp;quot;&amp;gt;&amp;#039;;&lt;br /&gt;
      spans++;&lt;br /&gt;
      i++;&lt;br /&gt;
    } else if (text.substring(i,i+2) == &amp;#039;&amp;amp;r&amp;#039;) {&lt;br /&gt;
      res += &amp;#039;&amp;lt;/span&amp;gt;&amp;#039;.repeat(spans);&lt;br /&gt;
      spans = 0;&lt;br /&gt;
      i++;&lt;br /&gt;
    } else if (/&amp;amp;#[0-9A-Fa-f]{6}/.test(text.substring(i,i+8))) {&lt;br /&gt;
      res += &amp;#039;&amp;lt;span style=&amp;quot;color: &amp;#039; + text.substring(i+1,i+8) + &amp;#039;&amp;quot;&amp;gt;&amp;#039;;&lt;br /&gt;
      spans++;&lt;br /&gt;
      i += 7;&lt;br /&gt;
    } else if (text[i] == &amp;#039;/&amp;#039;) {&lt;br /&gt;
      res += &amp;#039;&amp;lt;br&amp;gt;&amp;#039;;&lt;br /&gt;
    } else {&lt;br /&gt;
      res += text[i];&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
  return res + &amp;#039;&amp;lt;/span&amp;gt;&amp;#039;.repeat(spans);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
function setupPage (active) {&lt;br /&gt;
  active.addClass(&amp;#039;pageactive&amp;#039;);&lt;br /&gt;
  var index = active.index();&lt;br /&gt;
  var length = active.siblings().length - 2;&lt;br /&gt;
  active.siblings(&amp;#039;.book_pagenum&amp;#039;).text(&amp;#039;Page &amp;#039; + index + &amp;#039; of &amp;#039; + length);&lt;br /&gt;
  active.siblings(&amp;#039;.book_leftarrow, .book_rightarrow&amp;#039;).show();&lt;br /&gt;
  if (index == 1) {&lt;br /&gt;
    active.siblings(&amp;#039;.book_leftarrow&amp;#039;).hide();&lt;br /&gt;
  }&lt;br /&gt;
  if (index == length) {&lt;br /&gt;
    active.siblings(&amp;#039;.book_rightarrow&amp;#039;).hide();&lt;br /&gt;
  }&lt;br /&gt;
}&lt;/div&gt;</summary>
		<author><name>Diamondback88</name></author>
	</entry>
</feed>