<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://vixen2.nin-n.in/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://vixen2.nin-n.in/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3ACommon.js"/>
	<link rel="alternate" type="text/html" href="https://vixen2.nin-n.in/index.php?title=MediaWiki:Common.js&amp;action=history"/>
	<updated>2026-06-06T02:50:45Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://vixen2.nin-n.in/index.php?title=MediaWiki:Common.js&amp;diff=20&amp;oldid=prev</id>
		<title>Ninnin at 13:00, 4 November 2025</title>
		<link rel="alternate" type="text/html" href="https://vixen2.nin-n.in/index.php?title=MediaWiki:Common.js&amp;diff=20&amp;oldid=prev"/>
		<updated>2025-11-04T13:00:11Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://vixen2.nin-n.in/index.php?title=MediaWiki:Common.js&amp;amp;diff=20&amp;amp;oldid=4&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Ninnin</name></author>
	</entry>
	<entry>
		<id>https://vixen2.nin-n.in/index.php?title=MediaWiki:Common.js&amp;diff=4&amp;oldid=prev</id>
		<title>Ninnin: Created page with &quot;/* Any JavaScript here will be loaded for all users on every page load. */  // Fancy arrows go click click. Maybe. var arrows = document.querySelectorAll(&#039;.arrow&#039;);  arrows.forEach(function(arr) {   arr.addEventListener(&#039;click&#039;, function(event) {     this.classList.toggle(&#039;down&#039;);   }); });  // This is a bbcode parser. It&#039;s a horrible mess and it needs a bunch more testing, which is why I&#039;m sticking it here so I can test it a bunch. &lt;3  &quot;use strict&quot;;var _get=function t(e...&quot;</title>
		<link rel="alternate" type="text/html" href="https://vixen2.nin-n.in/index.php?title=MediaWiki:Common.js&amp;diff=4&amp;oldid=prev"/>
		<updated>2025-11-04T12:38:31Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;span class=&quot;autocomment&quot;&gt;Any JavaScript here will be loaded for all users on every page load.: &lt;/span&gt;  // Fancy arrows go click click. Maybe. var arrows = document.querySelectorAll(&amp;#039;.arrow&amp;#039;);  arrows.forEach(function(arr) {   arr.addEventListener(&amp;#039;click&amp;#039;, function(event) {     this.classList.toggle(&amp;#039;down&amp;#039;);   }); });  // This is a bbcode parser. It&amp;#039;s a horrible mess and it needs a bunch more testing, which is why I&amp;#039;m sticking it here so I can test it a bunch. &amp;lt;3  &amp;quot;use strict&amp;quot;;var _get=function t(e...&amp;quot;&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;
// Fancy arrows go click click. Maybe.&lt;br /&gt;
var arrows = document.querySelectorAll(&amp;#039;.arrow&amp;#039;);&lt;br /&gt;
&lt;br /&gt;
arrows.forEach(function(arr) {&lt;br /&gt;
  arr.addEventListener(&amp;#039;click&amp;#039;, function(event) {&lt;br /&gt;
    this.classList.toggle(&amp;#039;down&amp;#039;);&lt;br /&gt;
  });&lt;br /&gt;
});&lt;br /&gt;
&lt;br /&gt;
// This is a bbcode parser. It&amp;#039;s a horrible mess and it needs a bunch more testing, which is why I&amp;#039;m sticking it here so I can test it a bunch. &amp;lt;3&lt;br /&gt;
&lt;br /&gt;
&amp;quot;use strict&amp;quot;;var _get=function t(e,o,r){null===e&amp;amp;&amp;amp;(e=Function.prototype);var n=Object.getOwnPropertyDescriptor(e,o);if(void 0===n){var i=Object.getPrototypeOf(e);return null===i?void 0:t(i,o,r)}if(&amp;quot;value&amp;quot;in n)return n.value;var s=n.get;return void 0!==s?s.call(r):void 0},_createClass=function(){function t(t,e){for(var o=0;o&amp;lt;e.length;o++){var r=e[o];r.enumerable=r.enumerable||!1,r.configurable=!0,&amp;quot;value&amp;quot;in r&amp;amp;&amp;amp;(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,o,r){return o&amp;amp;&amp;amp;t(e.prototype,o),r&amp;amp;&amp;amp;t(e,r),e}}();function _defineProperty(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function _possibleConstructorReturn(t,e){if(!t)throw new ReferenceError(&amp;quot;this hasn&amp;#039;t been initialised - super() hasn&amp;#039;t been called&amp;quot;);return!e||&amp;quot;object&amp;quot;!=typeof e&amp;amp;&amp;amp;&amp;quot;function&amp;quot;!=typeof e?t:e}function _inherits(t,e){if(&amp;quot;function&amp;quot;!=typeof e&amp;amp;&amp;amp;null!==e)throw new TypeError(&amp;quot;Super expression must either be null or a function, not &amp;quot;+typeof e);t.prototype=Object.create(e&amp;amp;&amp;amp;e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&amp;amp;&amp;amp;(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError(&amp;quot;Cannot call a class as a function&amp;quot;)}var enableWarnings=document.getElementsByClassName(&amp;quot;warningbox&amp;quot;).length&amp;gt;0,etarget=void 0;if(enableWarnings){var container=document.getElementsByClassName(&amp;quot;warningbox&amp;quot;)[0];(etarget=document.createElement(&amp;quot;div&amp;quot;)).style.fontSize=&amp;quot;0.75rem&amp;quot;,container.appendChild(etarget)}else etarget=new DocumentFragment;var active_source=void 0;function warning(t){etarget.appendChild(function t(e){if(e.child){var o=t(e.child),r=document.createElement(&amp;quot;span&amp;quot;);r.innerText=&amp;quot;which happened somewhere around: &amp;quot;,o.appendChild(r);var n=document.createElement(&amp;quot;div&amp;quot;);return n.style.maxHeight=&amp;quot;80px&amp;quot;,n.style.padding=&amp;quot;1em&amp;quot;,n.style.overflowY=&amp;quot;scroll&amp;quot;,n.innerText=active_source.slice(e.start,e.end),o.appendChild(n),o}var i=document.createElement(&amp;quot;div&amp;quot;);i.innerHTML+=&amp;#039;Error! &amp;lt;div style=&amp;quot;padding: 1em;&amp;quot;&amp;gt;&amp;#039;,i.textContent+=e.e,i.innerHTML+=&amp;quot;&amp;lt;/div&amp;gt; Error happened while parsing: &amp;quot;;var s=document.createElement(&amp;quot;div&amp;quot;);return s.style.maxHeight=&amp;quot;80px&amp;quot;,s.style.padding=&amp;quot;1em&amp;quot;,s.style.overflowY=&amp;quot;scroll&amp;quot;,s.innerText=active_source.slice(e.start,e.end),i.appendChild(s),i}(t))}var BBCodeError=function(){function t(e,o,r,n){_classCallCheck(this,t),this.start=e,this.end=o,this.child=r,this.e=n}return _createClass(t,[{key:&amp;quot;toString&amp;quot;,value:function(){return this.child?this.child.toString():this.e}}]),t}(),BBCodeNode=function(){function t(e,o,r,n,i){_classCallCheck(this,t),this.tag=e,this.param=o,this.content=r,this.start=n,this.end=i}return _createClass(t,[{key:&amp;quot;becomeSubType&amp;quot;,value:function(){return this.constructor!==t|&amp;quot;&amp;quot;===this.tag?this:supportedTags[this.tag.toLowerCase()]?new(supportedTags[this.tag.toLowerCase()])(this.tag,this.param,this.content,this.start,this.end):(warning(new BBCodeError(this.start,this.end,void 0,&amp;quot;Invalid tag with name &amp;quot;+this.tag)),this)}},{key:&amp;quot;toHTML&amp;quot;,value:function(){var t=this;return this.content.map(function(e){try{return e.toHTML()}catch(e){return warning(new BBCodeError(Math.max(t.start,e.start-100),Math.min(t.end,e.end+100),e,&amp;quot;&amp;quot;)),&amp;quot;&amp;lt;span&amp;gt;[[Error: &amp;quot;+e.toString()+&amp;quot;]]&amp;lt;/span&amp;gt;&amp;quot;}}).join(&amp;quot;\n&amp;quot;)}},{key:&amp;quot;createSpan&amp;quot;,value:function(t){return document.createElement(&amp;quot;span&amp;quot;)}},{key:&amp;quot;createDiv&amp;quot;,value:function(t){return document.createElement(&amp;quot;div&amp;quot;)}}]),t}(),supportedTags=_defineProperty({ruby:function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return _inherits(e,BBCodeNode),_createClass(e,[{key:&amp;quot;toHTML&amp;quot;,value:function(){if(void 0===this.param||&amp;quot;&amp;quot;===this.param)throw new BBCodeError(this.start,this.end,void 0,&amp;quot;no text provided for the ruby tag&amp;quot;);return&amp;quot;&amp;lt;ruby&amp;gt;&amp;quot;+_get(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),&amp;quot;toHTML&amp;quot;,this).call(this)+&amp;quot;&amp;lt;rt&amp;gt;&amp;quot;+this.param+&amp;quot;&amp;lt;/rt&amp;gt;&amp;lt;/ruby&amp;gt;&amp;quot;}}]),e}(),b:function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return _inherits(e,BBCodeNode),_createClass(e,[{key:&amp;quot;toHTML&amp;quot;,value:function(){return&amp;#039;&amp;lt;span class=&amp;quot;bb-bold&amp;quot;&amp;gt;&amp;#039;+_get(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),&amp;quot;toHTML&amp;quot;,this).call(this)+&amp;quot;&amp;lt;/span&amp;gt;&amp;quot;}}]),e}(),heading:function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return _inherits(e,BBCodeNode),_createClass(e,[{key:&amp;quot;toHTML&amp;quot;,value:function(){return&amp;#039;&amp;lt;span class=&amp;quot;bb-heading&amp;quot;&amp;gt;&amp;#039;+_get(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),&amp;quot;toHTML&amp;quot;,this).call(this)+&amp;quot;&amp;lt;/span&amp;gt;&amp;quot;}}]),e}(),i:function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return _inherits(e,BBCodeNode),_createClass(e,[{key:&amp;quot;toHTML&amp;quot;,value:function(){return&amp;#039;&amp;lt;span class=&amp;quot;bb-italic&amp;quot;&amp;gt;&amp;#039;+_get(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),&amp;quot;toHTML&amp;quot;,this).call(this)+&amp;quot;&amp;lt;/span&amp;gt;&amp;quot;}}]),e}(),sup:function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return _inherits(e,BBCodeNode),_createClass(e,[{key:&amp;quot;toHTML&amp;quot;,value:function(){return&amp;#039;&amp;lt;span class=&amp;quot;bb-sup&amp;quot;&amp;gt;&amp;#039;+_get(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),&amp;quot;toHTML&amp;quot;,this).call(this)+&amp;quot;&amp;lt;/span&amp;gt;&amp;quot;}}]),e}(),sub:function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return _inherits(e,BBCodeNode),_createClass(e,[{key:&amp;quot;toHTML&amp;quot;,value:function(){return&amp;#039;&amp;lt;span class=&amp;quot;bb-sub&amp;quot;&amp;gt;&amp;#039;+_get(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),&amp;quot;toHTML&amp;quot;,this).call(this)+&amp;quot;&amp;lt;/span&amp;gt;&amp;quot;}}]),e}(),small:function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return _inherits(e,BBCodeNode),_createClass(e,[{key:&amp;quot;toHTML&amp;quot;,value:function(){return&amp;#039;&amp;lt;span class=&amp;quot;bb-small&amp;quot;&amp;gt;&amp;#039;+_get(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),&amp;quot;toHTML&amp;quot;,this).call(this)+&amp;quot;&amp;lt;/span&amp;gt;&amp;quot;}}]),e}(),big:function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return _inherits(e,BBCodeNode),_createClass(e,[{key:&amp;quot;toHTML&amp;quot;,value:function(){return&amp;#039;&amp;lt;span class=&amp;quot;bb-big&amp;quot;&amp;gt;&amp;#039;+_get(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),&amp;quot;toHTML&amp;quot;,this).call(this)+&amp;quot;&amp;lt;/span&amp;gt;&amp;quot;}}]),e}(),u:function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return _inherits(e,BBCodeNode),_createClass(e,[{key:&amp;quot;toHTML&amp;quot;,value:function(){return&amp;#039;&amp;lt;span class=&amp;quot;bb-underline&amp;quot;&amp;gt;&amp;#039;+_get(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),&amp;quot;toHTML&amp;quot;,this).call(this)+&amp;quot;&amp;lt;/span&amp;gt;&amp;quot;}}]),e}(),s:function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return _inherits(e,BBCodeNode),_createClass(e,[{key:&amp;quot;toHTML&amp;quot;,value:function(){return&amp;#039;&amp;lt;span class=&amp;quot;bb-strikethrough&amp;quot;&amp;gt;&amp;#039;+_get(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),&amp;quot;toHTML&amp;quot;,this).call(this)+&amp;quot;&amp;lt;/span&amp;gt;&amp;quot;}}]),e}(),hr:function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return _inherits(e,BBCodeNode),_createClass(e,[{key:&amp;quot;toHTML&amp;quot;,value:function(){return&amp;quot;&amp;lt;hr/&amp;gt;&amp;quot;}}]),e}(),br:function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return _inherits(e,BBCodeNode),_createClass(e,[{key:&amp;quot;toHTML&amp;quot;,value:function(){return&amp;quot;&amp;lt;br/&amp;gt;&amp;quot;}}]),e}(),img:function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return _inherits(e,BBCodeNode),_createClass(e,[{key:&amp;quot;toHTML&amp;quot;,value:function(){throw new BBCodeError(this.start,this.end,void 0,&amp;quot;[img] is not supported, use mediawiki&amp;#039;s image syntax instead.&amp;quot;)}}]),e}(),color:function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return _inherits(e,BBCodeNode),_createClass(e,[{key:&amp;quot;toHTML&amp;quot;,value:function(){var t=this.createSpan(),o=this.param.toLowerCase().trim();if(-1!==[&amp;quot;white&amp;quot;,&amp;quot;black&amp;quot;,&amp;quot;red&amp;quot;,&amp;quot;blue&amp;quot;,&amp;quot;yellow&amp;quot;,&amp;quot;green&amp;quot;,&amp;quot;pink&amp;quot;,&amp;quot;gray&amp;quot;,&amp;quot;orange&amp;quot;,&amp;quot;purple&amp;quot;,&amp;quot;brown&amp;quot;,&amp;quot;cyan&amp;quot;].indexOf(o))t.style.color=o;else{if(!o.match(/[#][0-9a-f]{6}([0-9a-f]{2})?/))throw new BBCodeError(this.start,this.end,void 0,&amp;quot;Invalid color: &amp;quot;+o);t.style.color=o}return&amp;#039;&amp;lt;span style=&amp;quot;color: &amp;#039;+o+&amp;#039;&amp;quot;&amp;gt;&amp;#039;+_get(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),&amp;quot;toHTML&amp;quot;,this).call(this)+&amp;quot;&amp;lt;/span&amp;gt;&amp;quot;}}]),e}(),indent:function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return _inherits(e,BBCodeNode),_createClass(e,[{key:&amp;quot;toHTML&amp;quot;,value:function(){return&amp;#039;&amp;lt;div class=&amp;quot;bb-indent&amp;quot;&amp;gt;&amp;#039;+_get(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),&amp;quot;toHTML&amp;quot;,this).call(this)+&amp;quot;&amp;lt;/div&amp;gt;&amp;quot;}}]),e}(),left:function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return _inherits(e,BBCodeNode),_createClass(e,[{key:&amp;quot;toHTML&amp;quot;,value:function(){return&amp;#039;&amp;lt;div class=&amp;quot;bb-left&amp;quot;&amp;gt;&amp;#039;+_get(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),&amp;quot;toHTML&amp;quot;,this).call(this)+&amp;quot;&amp;lt;/div&amp;gt;&amp;quot;}}]),e}(),center:function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return _inherits(e,BBCodeNode),_createClass(e,[{key:&amp;quot;toHTML&amp;quot;,value:function(){return&amp;#039;&amp;lt;div class=&amp;quot;bb-center&amp;quot;&amp;gt;&amp;#039;+_get(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),&amp;quot;toHTML&amp;quot;,this).call(this)+&amp;quot;&amp;lt;/div&amp;gt;&amp;quot;}}]),e}(),right:function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return _inherits(e,BBCodeNode),_createClass(e,[{key:&amp;quot;toHTML&amp;quot;,value:function(){return&amp;#039;&amp;lt;div class=&amp;quot;bb-right&amp;quot;&amp;gt;&amp;#039;+_get(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),&amp;quot;toHTML&amp;quot;,this).call(this)+&amp;quot;&amp;lt;/div&amp;gt;&amp;quot;}}]),e}(),justify:function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return _inherits(e,BBCodeNode),_createClass(e,[{key:&amp;quot;toHTML&amp;quot;,value:function(){return&amp;#039;&amp;lt;div class=&amp;quot;bb-justify&amp;quot;&amp;gt;&amp;#039;+_get(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),&amp;quot;toHTML&amp;quot;,this).call(this)+&amp;quot;&amp;lt;/div&amp;gt;&amp;quot;}}]),e}(),col:function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return _inherits(e,BBCodeNode),e}(),row:function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return _inherits(e,BBCodeNode),_createClass(e,[{key:&amp;quot;toHTML&amp;quot;,value:function(){var t=this;if(this.content=this.content.filter(function(t){return&amp;quot;col&amp;quot;===t.tag}),this.content.length&amp;lt;1)throw new BBCodeError(this.start,this.end,void 0,&amp;quot;Need at least 1 column in a row&amp;quot;);if(this.content.length&amp;gt;3)throw new BBCodeError(this.start,this.end,void 0,&amp;quot;Can&amp;#039;t have more than 3 columns in a row&amp;quot;);return this.createDiv().classList.add(&amp;quot;bb-row&amp;quot;),&amp;#039;&amp;lt;div class=&amp;quot;bb-row&amp;quot;&amp;gt;&amp;#039;+this.content.map(function(e){var o=void 0;switch(e.param.trim()){case&amp;quot;small&amp;quot;:case&amp;quot;1&amp;quot;:o=&amp;quot;bb-col-small bb-col-small-large-width bb-col-small-tiny-width&amp;quot;;break;case&amp;quot;medium&amp;quot;:case&amp;quot;2&amp;quot;:o=&amp;quot;bb-col-medium bb-col-medium-large-width bb-col-medium-tiny-width&amp;quot;;break;case&amp;quot;&amp;quot;:case&amp;quot;large&amp;quot;:case&amp;quot;3&amp;quot;:o=&amp;quot;bb-col-large bb-col-large-large-width bb-col-large-tiny-width&amp;quot;;break;default:throw new BBCodeError(t.start,t.end,void 0,&amp;quot;Invalid column size: &amp;quot;+e.param)}return&amp;#039;&amp;lt;div class=&amp;quot;&amp;#039;+o+&amp;#039;&amp;quot;&amp;gt;&amp;#039;+e.toHTML()+&amp;quot;&amp;lt;/div&amp;gt;&amp;quot;}).join(&amp;quot;&amp;quot;)+&amp;quot;&amp;lt;/div&amp;gt;&amp;quot;}}]),e}()},&amp;quot;justify&amp;quot;,function(t){function e(){return _classCallCheck(this,e),_possibleConstructorReturn(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return _inherits(e,BBCodeNode),_createClass(e,[{key:&amp;quot;toHTML&amp;quot;,value:function(){return&amp;#039;&amp;lt;div class=&amp;quot;bb-justify&amp;quot;&amp;gt;&amp;#039;+_get(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),&amp;quot;toHTML&amp;quot;,this).call(this)+&amp;quot;&amp;lt;/div&amp;gt;&amp;quot;}}]),e}()),BBCodeFragment=function(t){function e(t){return _classCallCheck(this,e),_possibleConstructorReturn(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,&amp;quot;&amp;quot;,&amp;quot;&amp;quot;,t||[]))}return _inherits(e,BBCodeNode),_createClass(e,[{key:&amp;quot;becomeSubType&amp;quot;,value:function(){return new BBCodeNode(this.tag,this.param,this.content.map(function(t){try{return t.becomeSubType()}catch(e){return warning(e),new BBCodePlainText(&amp;quot;[[Error: &amp;quot;+e.toString()+&amp;quot;]]&amp;quot;,t.start,t.end)}}),this.start,this.end).becomeSubType()}}]),e}(),BBCodePlainText=function(t){function e(t,o,r){return _classCallCheck(this,e),_possibleConstructorReturn(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,&amp;quot;&amp;quot;,&amp;quot;&amp;quot;,t,o,r))}return _inherits(e,BBCodeNode),_createClass(e,[{key:&amp;quot;toHTML&amp;quot;,value:function(t){return this.content}}]),e}(),BBCodeStream=function(){function t(e){_classCallCheck(this,t),this.source=e,this.index=0,this.lookahead=void 0,this.line=1,this.column=1,this.rolloverColumn=-1}return _createClass(t,[{key:&amp;quot;peekWithoutWhitespace&amp;quot;,value:function(){for(;&amp;quot; &amp;quot;==this.peek();)this.read();return this.peek()}},{key:&amp;quot;getLine&amp;quot;,value:function(){return this.lookahead&amp;amp;&amp;amp;1==this.column?this.line-1:this.line}},{key:&amp;quot;getColumn&amp;quot;,value:function(){return this.lookahead&amp;amp;&amp;amp;1==this.column?this.rolloverColumn:this.column}},{key:&amp;quot;peek&amp;quot;,value:function(){return this.lookahead?this.lookahead:(this.lookahead=this.read(),this.lookahead)}},{key:&amp;quot;seek&amp;quot;,value:function(t){this.index=t,this.lookahead=void 0}},{key:&amp;quot;read&amp;quot;,value:function(){if(void 0!==this.lookahead){var t=this.lookahead;return this.lookahead=void 0,t}var e=this.source[this.index++];return&amp;quot;\n&amp;quot;==e?(this.line+=1,this.rolloverColumn=this.column,this.column=1):this.column+=1,e}}]),t}();function parseBBCodeTag(t){var e=t.index,o=&amp;quot;&amp;quot;;for(t.peekWithoutWhitespace();t.peek().match(/[a-zA-Z]/);)o+=t.read();if(!t.peek()||&amp;quot;&amp;quot;==o)throw t.seek(e),&amp;quot;Never found a closing bracket&amp;quot;;return o}function parseBBCodeParam(t){var e=t.index,o=&amp;quot;&amp;quot;;for(&amp;quot;=&amp;quot;==t.peek()&amp;amp;&amp;amp;t.read(),t.peekWithoutWhitespace();t.peek()&amp;amp;&amp;amp;&amp;quot;]&amp;quot;!=t.peek();)o+=t.read();if(!t.peek())throw t.seek(e),&amp;quot;Never closed a parameter&amp;quot;;return o}var nobr=0;function parseBBCode(t,e,o,r){o=void 0===o?&amp;quot;&amp;quot;:o,(e=void 0===e||e)&amp;amp;&amp;amp;(nobr=0);var n=t.index,i=void 0;for(e?i=new BBCodeFragment:supportedTags.hasOwnProperty(o.toLowerCase())?i=new(supportedTags[o.toLowerCase()])(o,r,[],0,0):(warning(new BBCodeError(t.index,t.index,void 0,&amp;quot;Invalid tag with name &amp;quot;+o)),i=new BBCodeFragment);void 0!==t.peek();){var s=t.read();if(&amp;quot;[&amp;quot;==s||&amp;quot;\n&amp;quot;==s)if(&amp;quot;\n&amp;quot;==s&amp;amp;&amp;amp;nobr&amp;gt;0)nobr--;else{var a=t.index-1;if(n!=a){var c=t.source.slice(n,a);i.content.push(new BBCodePlainText(c,n,a)),n=a}if(&amp;quot;\n&amp;quot;!=s){var l=t.index-1;if(&amp;quot;/&amp;quot;==t.peekWithoutWhitespace()){if(t.read(),&amp;quot;]&amp;quot;==t.peekWithoutWhitespace())continue;if(e)continue;var u=parseBBCodeTag(t);if(void 0===u||&amp;quot;]&amp;quot;!=t.peekWithoutWhitespace()){t.read(),i.content.push(new BBCodePlainText(t.source.slice(l,t.index),l,t.index)),n=t.index;continue}if(u.toLowerCase()!==o){warning(new BBCodeError(l,t.index,void 0,&amp;quot;Incorrectly matched tag: &amp;quot;+u+&amp;quot; vs &amp;quot;+o)),t.seek(l);break}t.read();break}var p=void 0;try{p=parseBBCodeTag(t)}catch(e){t.seek(l+1);continue}var h=p.toLowerCase();if(&amp;quot;hr&amp;quot;!=h&amp;amp;&amp;amp;&amp;quot;br&amp;quot;!=h&amp;amp;&amp;amp;&amp;quot;nobr&amp;quot;!=h){var d=void 0;try{d=&amp;quot;=&amp;quot;==t.peekWithoutWhitespace()?parseBBCodeParam(t):&amp;quot;&amp;quot;}catch(e){t.seek(l+1);continue}if(&amp;quot;]&amp;quot;==t.peekWithoutWhitespace()){t.read();var _=void 0;if(&amp;quot;noparse&amp;quot;==p.toLowerCase()){for(var f=t.index,y=void 0;void 0!==t.peek();){if(&amp;quot;[&amp;quot;==t.read())if(y=t.index-1,&amp;quot;/&amp;quot;==t.peekWithoutWhitespace())if(&amp;quot;noparse&amp;quot;==t.source.substring(t.index,t.index+7).toLowerCase()){if(t.seek(t.index+7),&amp;quot;]&amp;quot;==t.peekWithoutWhitespace()){t.read();break}y=void 0}else y=void 0;else y=void 0}void 0===y&amp;amp;&amp;amp;(y=t.source.length),_=new BBCodePlainText(t.source.substring(f,y),f,y)}else(_=parseBBCode(t,!1,p,d)).start=l,_.end=t.index;i.content.push(_),n=t.index}else t.seek(l+1)}else{if(&amp;quot;]&amp;quot;!=t.peekWithoutWhitespace())continue;t.read(),&amp;quot;hr&amp;quot;==h?i.content.push(new supportedTags.hr(&amp;quot;hr&amp;quot;,&amp;quot;&amp;quot;,[],l,t.index)):&amp;quot;br&amp;quot;==h?i.content.push(new supportedTags.br(&amp;quot;br&amp;quot;,&amp;quot;&amp;quot;,[],l,t.index)):nobr+=1,n=t.index}}else i.content.push(new BBCodePlainText(&amp;quot;&amp;lt;br/&amp;gt;&amp;quot;,t.index-1,t.index))}}if(e&amp;amp;&amp;amp;n&amp;lt;t.source.length){var b=t.source.slice(n,t.source.length);i.content.push(new BBCodePlainText(b,n,t.source.length))}return e?i.becomeSubType():i}function apply(){document.querySelectorAll(&amp;quot;.bbcode-target&amp;quot;).forEach(function(t){var e=void 0;active_source=t.innerHTML.replace(/&amp;lt;p&amp;gt;/g,&amp;quot;&amp;quot;).replace(/&amp;lt;\/p&amp;gt;/g,&amp;quot;\n&amp;quot;).replace(/(&amp;lt;[\/]?t([dr]|able([ ]*class=[^&amp;gt;]*?)?)&amp;gt;)[ \n]+/gm,&amp;quot;$1&amp;quot;);try{e=parseBBCode(new BBCodeStream(active_source))}catch(t){return void warning(&amp;quot;An error happened in such a way that the bbcode parser had to completely give up. Error: &amp;quot;+t)}var o=document.createElement(&amp;quot;div&amp;quot;);o.innerHTML=e.toHTML(),t.parentNode.replaceChild(o,t)})}apply();&lt;/div&gt;</summary>
		<author><name>Ninnin</name></author>
	</entry>
</feed>